home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / grapprog / pcdraft2.zip / PCDRAFT2.EXE / DRAFT2.DOC < prev    next >
Text File  |  1994-03-31  |  127KB  |  3,924 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                    PC-Draft II (tm)
  16.  
  17.                                      User Manual
  18.  
  19.                                     Release 3.26
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.                     Copyright 1986 -1994 - All Rights reserved
  47.  
  48.                                    Natural Software
  49.                                 19 South fifth Street
  50.                              St. Charles Illinois, 60174
  51.                                     (708) 377-7320
  52.  
  53.  
  54.  
  55.  
  56.      LICENSE
  57.  
  58.      THE PC-Draft II SOFTWARE AND MANUAL IS COPYRIGHTED, ALL RIGHTS ARE RESE-
  59.      RVED. YOU HAVE PURCHASED A LICENSE TO USE THIS SOFTWARE ON ONE MACHINE AT A
  60.      TIME. YOU ARE AUTHORIZED TO MAKE COPIES OF PC-DRAFT II FOR THE SOLE PURPOSE
  61.      OF BACKING UP YOUR SOFTWARE AND PROTECTING YOUR INVESTMENT FROM LOSS.
  62.  
  63.      Note: this copy of PC-Draft II is being distributed as Shareware. This
  64.      means that you may copy the disk just as you received it and you may give
  65.      it to others for their trial use. You are also permitted and encouraged to
  66.      upload this version to electronic bulletin board services. You may not,
  67.      however resell or collect any fee for the distribution of PC-Draft without
  68.      the permission of Natural Software. (This does not include the normal fees
  69.      for using bulletin boards.) If you continue to use PC-Draft II after your
  70.      trial use, you must pay the purchase price as detailed below.
  71.  
  72.  
  73.      WARRANTY
  74.  
  75.      THIS SOFTWARE WILL PERFORM AS DESCRIBED HEREIN ONLY IF PROPERLY APPLIED.
  76.      OUR LIABILITY TO YOU IS LIMITED TO REPLACING THE SOFTWARE (FOR REGISTERED
  77.      USERS). WE HAVE NO LIABILITY TO YOU FOR ANY DAMAGE OR LOSS, INCLUDING
  78.      SPECIAL, INCIDENTAL, OR CONSEQUENTIAL, CAUSED BY THIS SOFTWARE, DIRECTLY OR
  79.      INDIRECTLY.
  80.  
  81.      YOU AGREE TO THE TERMS OF THIS LICENSE BY YOUR DECISION TO USE THIS
  82.      SOFTWARE.
  83.  
  84.               _______
  85.          ____|__     |               (tm)
  86.       --|       |    |-------------------
  87.         |   ____|__  |  Association of
  88.         |  |       |_|  Shareware
  89.         |__|   o   |    Professionals
  90.       -----|   |   |---------------------
  91.            |___|___|    MEMBER
  92.  
  93.  
  94.      This program is produced by a member of the Association of Shareware
  95.      Professionals (ASP).  ASP wants to make sure that the shareware 
  96.      principle works for you. If you are unable to resolve a shareware-
  97.      related problem with an ASP member by contacting the member directly,
  98.      ASP may be able to help. The ASP Ombudsman can help you resolve a 
  99.      dispute or problem with an ASP member, but does not provide technical
  100.      support for members' products. Please write to the ASP Ombudsman at 
  101.      P.O. Box 5786, Bellevue, WA 98006 or send a Compuserve message via
  102.      easyplex to ASP Ombudsman 70007,3536
  103.  
  104.                                           i
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.                                   Table of contents
  118.  
  119.  
  120.      Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   v
  121.           Shareware  . . . . . . . . . . . . . . . . . . . . . . . . . . . .   2
  122.                What registered users get . . . . . . . . . . . . . . . . . .   2
  123.           System Requirements  . . . . . . . . . . . . . . . . . . . . . . .   3
  124.           Terminology  . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  125.           Installation . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  126.                MicroSoft Mouse . . . . . . . . . . . . . . . . . . . . . . .   4
  127.                Other Mice  . . . . . . . . . . . . . . . . . . . . . . . . .   5
  128.           Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   5
  129.           Files used . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  130.           File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  131.  
  132.      The Basics  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   7
  133.           Starting PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . .   7
  134.           Cursor Movement  . . . . . . . . . . . . . . . . . . . . . . . . .   7
  135.                Cursor Increment  . . . . . . . . . . . . . . . . . . . . . .   7
  136.                Suspend Cursor  . . . . . . . . . . . . . . . . . . . . . . .   7
  137.                Change Cursor . . . . . . . . . . . . . . . . . . . . . . . .   8
  138.           Menu Selections  . . . . . . . . . . . . . . . . . . . . . . . . .   8
  139.                Display Menu Bar  . . . . . . . . . . . . . . . . . . . . . .   8
  140.           The Control Panel  . . . . . . . . . . . . . . . . . . . . . . . .   9
  141.           The Drawing Area . . . . . . . . . . . . . . . . . . . . . . . . .   9
  142.                Moving around . . . . . . . . . . . . . . . . . . . . . . . .  10
  143.                Direct Move . . . . . . . . . . . . . . . . . . . . . . . . .  10
  144.                Home  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  145.           Using markers  . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  146.                Setting markers . . . . . . . . . . . . . . . . . . . . . . .  10
  147.                Jump to marker  . . . . . . . . . . . . . . . . . . . . . . .  10
  148.           Clearing the Screen  . . . . . . . . . . . . . . . . . . . . . . .  11
  149.           Erasing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  150.           Undo Command . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  151.           Saving Your Work . . . . . . . . . . . . . . . . . . . . . . . . .  12
  152.                Directory Search  . . . . . . . . . . . . . . . . . . . . . .  13
  153.           Ending PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . . .  13
  154.  
  155.      Drawing Commands  . . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  156.                Line  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  157.                Multi-Line  . . . . . . . . . . . . . . . . . . . . . . . . .  14
  158.                Free Draw . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  159.                Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  160.                Rectangle . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  161.                Circle  . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  162.                Ellipse . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  163.                Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  164.                Paint . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  165.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  166.                Text  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  167.                Write . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  168.  
  169.  
  170.                                           ii
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.                Object  . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  184.                Drop Object . . . . . . . . . . . . . . . . . . . . . . . . .  17
  185.                Object Functions  . . . . . . . . . . . . . . . . . . . . . .  17
  186.                Transfer to Font  . . . . . . . . . . . . . . . . . . . . . .  18
  187.                Zoom  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  188.           Goodies  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  189.                Just paint  . . . . . . . . . . . . . . . . . . . . . . . . .  19
  190.                SpraY Can . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  191.                Kursor  . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  192.                Mouse cursor  . . . . . . . . . . . . . . . . . . . . . . . .  20
  193.                grId  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  194.                Quick view  . . . . . . . . . . . . . . . . . . . . . . . . .  21
  195.                sNap  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  196.                Color . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  197.                Window  . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  198.  
  199.      Patterns  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  200.           Loading Patterns . . . . . . . . . . . . . . . . . . . . . . . . .  22
  201.           Selecting Patterns . . . . . . . . . . . . . . . . . . . . . . . .  22
  202.           Creating and changing Patterns . . . . . . . . . . . . . . . . . .  22
  203.           Saving Patterns  . . . . . . . . . . . . . . . . . . . . . . . . .  22
  204.  
  205.      Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  206.           Saving Objects . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  207.           Retrieving Objects . . . . . . . . . . . . . . . . . . . . . . . .  23
  208.  
  209.      Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  210.           Using Fonts  . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  211.           Creating, changing Fonts . . . . . . . . . . . . . . . . . . . . .  24
  212.           Saving Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  213.  
  214.      Macros  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  215.           Using Macros . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  216.           Creating Macros  . . . . . . . . . . . . . . . . . . . . . . . . .  26
  217.           Suspend Cursor Increment . . . . . . . . . . . . . . . . . . . . .  26
  218.           Relative [+/-] Cursor Increment  . . . . . . . . . . . . . . . . .  26
  219.           .MAC file structure  . . . . . . . . . . . . . . . . . . . . . . .  27
  220.           Importing text files:  . . . . . . . . . . . . . . . . . . . . . .  27
  221.  
  222.      Graphs  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  223.           Editing Points . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  224.           Saving Points  . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  225.           loading Points . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  226.           Graph Type . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  227.           Drawing graphs . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  228.  
  229.      Drawing Mode  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  31
  230.  
  231.      Printing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  232.           Printer resolution modes . . . . . . . . . . . . . . . . . . . . .  32
  233.                IBM dot matrix  . . . . . . . . . . . . . . . . . . . . . . .  33
  234.                Epson dot matrix  . . . . . . . . . . . . . . . . . . . . . .  33
  235.  
  236.                                          iii
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.                HP LaserJet+  . . . . . . . . . . . . . . . . . . . . . . . .  33
  250.                IDS Microprism  . . . . . . . . . . . . . . . . . . . . . . .  34
  251.                C.Itoh 8510-1550  . . . . . . . . . . . . . . . . . . . . . .  34
  252.                GEM .IMG  . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  253.           Print current screen window  . . . . . . . . . . . . . . . . . . .  34
  254.           Print full drawing . . . . . . . . . . . . . . . . . . . . . . . .  35
  255.           Print partial screen . . . . . . . . . . . . . . . . . . . . . . .  35
  256.  
  257.      Screen Capture  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  258.  
  259.      The PIX graphics language . . . . . . . . . . . . . . . . . . . . . . .  37
  260.                Starting PIX  . . . . . . . . . . . . . . . . . . . . . . . .  38
  261.                Trace mode  . . . . . . . . . . . . . . . . . . . . . . . . .  38
  262.                Exit PIX  . . . . . . . . . . . . . . . . . . . . . . . . . .  38
  263.           PIX Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  264.                Variables . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  265.                Assign (LET)  . . . . . . . . . . . . . . . . . . . . . . . .  39
  266.                Increment . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  267.                Decrement . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  268.           Cursor Movement Commands . . . . . . . . . . . . . . . . . . . . .  40
  269.                Gotoxy  . . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  270.           Screen moves . . . . . . . . . . . . . . . . . . . . . . . . . . .  41
  271.           Drawing Commands . . . . . . . . . . . . . . . . . . . . . . . . .  41
  272.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  42
  273.           Non Drawing Commands . . . . . . . . . . . . . . . . . . . . . . .  44
  274.           File Commands  . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  275.           Program Control Statements . . . . . . . . . . . . . . . . . . . .  44
  276.           Other Commands . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  277.           New PIX commands . . . . . . . . . . . . . . . . . . . . . . . . .  45
  278.                Pause . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  279.                Getkey  . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  280.                Case  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  281.                Jmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  282.                Popup . . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  283.                Popdown . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  284.                Pgotoxy . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  285.                Tgotoxy . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  286.                Print . . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  287.           PC-Draft commands not supported  . . . . . . . . . . . . . . . . .  49
  288.  
  289.      Summary of PIX commands . . . . . . . . . . . . . . . . . . . . . . . .  50
  290.  
  291.      Summary of Drawing Commands . . . . . . . . . . . . . . . . . . . . . .  52
  292.  
  293.      Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  53
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.                                           iv
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.                                      Introduction
  316.  
  317.  
  318.      PC-Draft II is a high resolution pixel oriented drawing and graphing
  319.      utility, which is designed to facilitate a variety of drawing and drafting
  320.      needs.  Some of PC-Draft II's features:
  321.  
  322.           o    You can produce drawings up to 1280 by 700 dots using IBM's color
  323.                graphic adaptor high resolution graphics mode (640 x 200 dots per
  324.                screen). Such a drawing will more than fill an 8-1/2 x 11 inch
  325.                printed output (at 150 dots per inch resolution).
  326.  
  327.           o    Built-in functions allow you to draw circles, lines, boxes, arcs
  328.                and curves; draw bar, line and pie graphs; create patterns with
  329.                which to fill areas; cut and paste objects and save objects to
  330.                files for later use.  
  331.  
  332.           o    PC-Draft is both menu driven and command driven -- all drawing
  333.                commands may be selected from the menus or may be entered by a
  334.                single keystroke command such as [C] to draw a circle or [L] for
  335.                line.
  336.  
  337.           o    You can zoom in to precisely edit one pixel at a time.
  338.  
  339.           o    You can record graphic keyboard macros saved in files for later
  340.                playback and for animation effects.
  341.  
  342.           o    You can load and edit fonts. 
  343.  
  344.           o    You can print your drawings on a variety of printers including
  345.                those compatible with IBM and Epson Dot matrix, HP Laserjet+, and
  346.                HP DeskJet printers. Also you can save the output to the printer
  347.                in a file for later batch printing.
  348.  
  349.           o    You can save portions of the screen or full drawings in GEM .IMG
  350.                file format. These can then be directly imported into such Desk
  351.                Top Publishing programs as Ventura Publisher and WordPerfect 5.0.
  352.  
  353.           o    Drawing and Pic files may be saved in compressed format to save
  354.                disk space.
  355.  
  356.           o    You can set up to ten place markers anywhere in the drawing to
  357.                jump to.
  358.  
  359.           o    Drawing grids are displayable at any spacing with optional "grid-
  360.                lock" (Snap).
  361.  
  362.           o    A pop-up status panel shows x and y cursor position, position of
  363.                the screen window in respect to the full drawing area, the
  364.                current pattern, the current cursor increment value, and more.
  365.  
  366.  
  367.  
  368.      Introduction                                                         Page 1
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.           o    An undo function repairs damage done by your last command.
  376.  
  377.           o    A preview function displays the entire drawing on the screen.
  378.  
  379.           o    A graphics presentation language called PIX performs all PC-
  380.                Draft II commands from a script you write without displaying any
  381.                cursor or menu interaction. PIX allows you to create animated
  382.                sequences of: loading screens, drawing forms and graphs and
  383.                adding text and more.
  384.  
  385.           o    Another program: CAPTURE.COM allows you to capture screen images
  386.                from other programs (both text and graphic screens), to be loaded
  387.                into PC-Draft for enhancement and printing.
  388.  
  389.           o    The latest additions to the Font, Macro, and Object libraries are
  390.                included.
  391.  
  392.  
  393.      Shareware
  394.  
  395.      PC-Draft II is copyrighted. It is not a public domain program. It is being
  396.      distributed as Shareware, which means that unmodified copies of the soft-
  397.      ware and documentation may be freely copied and shared. We ask in return
  398.      that should you find PC-Draft II to be useful, you become a registered
  399.      user. You become registered by sending $50.00 to:
  400.  
  401.  
  402.                                    Natural Software
  403.                                 19 South fifth Street
  404.                              St. Charles Illinois, 60174
  405.  
  406.  
  407.      Or call with your VISA or MasterCard number: (708) 377-7320. The file:
  408.      ORDER.FRM on the disk can be printed and used as an order form.
  409.  
  410.      What do you get by becoming registered? What registered users get:
  411.  
  412.  
  413.  
  414.           o    The latest version of the software without the introductory
  415.                ShareWare screen.
  416.  
  417.           o    Free subscription to Compuserve including: your own private
  418.                User ID and Password, $15 introductory usage credit, free sub-
  419.                scription to Compuserve's monthly member magazine, Online Today.
  420.  
  421.           o    Free telephone support: You can talk directly to the author (Mike
  422.                Allen). Many of the features in this latest version of PC-Draft
  423.                came directly from suggestions and wishes from users. You can
  424.                also communicate with the author via compuserve. Send an EMAIL
  425.                message to Mike Allen (PID: 70047,744)
  426.  
  427.  
  428.  
  429.      Page 2                                                          PC-Draft II
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.        o    FREE!! -- when you register, you are entitled to a free introductory
  437.                subscription to CompuServe Invormation Service -- the biggest national
  438.                BBS! You will receive: a private user ID number and Password,
  439.                a $15 usage credit (up to 2 1/2 hours connect time at 2400 baud), 
  440.                a complimentary subscrition to CompuServes's monthly computing magazine,
  441.                Online Today.
  442.  
  443.                o    The latest additions to the Font, Macro, and Object libraries:
  444.                They require too much disk space to distribute with the Shareware
  445.                version. And, as a registered user you will be notified when new
  446.                libraries become available.
  447.  
  448.           o    A collection of drawings made with PC-Draft II which you can
  449.                incorporate into you own work.
  450.  
  451.           o    A typeset quality user manual profusely illustrated with drawings
  452.                made with PC-Draft II and full of helpful hints.
  453.  
  454.           o    As a registered user you will be informed of new versions of PC-
  455.                Draft.
  456.  
  457.      The shareware philosophy is to pay smaller amounts for well crafted and
  458.      useful software from developers who cannot spend the millions of dollars on
  459.      packaging and marketing necessary to compete with the large software
  460.      development companies. You benefit by being able to try a wider variety of
  461.      software products to find the ones that suit your particular purpose. And
  462.      the trial is free. The shareware developer benefits from being able to
  463.      distribute his work to a wider audience than would be possible through
  464.      normal channels.
  465.  
  466.      Your share of the responsibility for shareware to continue, and to support
  467.      the development of more and better products is to distribute your shareware
  468.      programs to others and become a registered user of those products you like
  469.      and use. 
  470.  
  471.  
  472.      System Requirements
  473.  
  474.      PC-Draft II is compatible with the IBM PC, XT, and AT and "true compatible"
  475.      microcomputers with at least 384k of memory and with MS-DOS or PC-DOS
  476.      versions 2.0 or later.  An IBM or compatible Color Graphics Display adapter
  477.      is required.  PC-Draft II performs direct access of the display buffer at
  478.      address B8000 hex.  PC-Draft II will not work with monochrome displays or
  479.      foreign display interface boards such as Hercules. (However, it will work
  480.      with one of the shareware CGA emulators such as HGCIBM or SIMCGA. Look for
  481.      them on your BBS.)
  482.  
  483.      If you have a problem with your display, you might try pressing the [Ctrl +
  484.      F1] key combination to cycle through the different colors. The is par-
  485.      ticularly necessary on the PC-Jr.
  486.  
  487.      PC-Draft II is memory hungry. For the sake of speed, an entire bit mapped
  488.      drawing is kept in memory, rather than being paged to and from disk. If you
  489.      like to load lots of stay resident utilities, you better have a 512k
  490.      machine, or unload them before running PC-Draft II.  The PC-Draft II
  491.      program itself occupies about 85k.  As you move the screen window to new
  492.  
  493.  
  494.  
  495.      Introduction                                                         Page 3
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.      portions of a large drawing more memory is allocated, 16k per screen.  If
  509.      you start with less than 128k available, you will surely get an error
  510.      message:  Out of memory!, then all you can do is save your drawing and quit
  511.      PC-Draft II.
  512.  
  513.  
  514.      Terminology
  515.  
  516.      Brackets are used to indicate keystrokes. For instance: [Ctrl + PgUp] means
  517.      to press the Control key and the PgUp keys together. Whereas: [F3][P][S]
  518.      means to press those keys in sequence. The four arrow keys on the numeric
  519.      keypad are indicated as: [v][<][>][v].  Filenames are given in all upper-
  520.      case such as: PATTERN1.PAT.
  521.  
  522.  
  523.      Installation
  524.  
  525.      Please read the read.me file for instructions to install the shareware
  526.      version. It creates the following sub-directories: PAT, MAC, FON, OBJ,
  527.      PIC, DWG, SCR.
  528.  
  529.      The sub-directory names correspond to the default filename extensions for
  530.      the various files PC-Draft II uses and will help keep things organized.
  531.  
  532.      The executable PC-Draft program consists of the main program: DRAFT2.EXE
  533.      and a configuration file: DRAFT2.CFG. This configuration file must both be
  534.      on your current directory. If you are using a floppy disk based system, you
  535.      must leave the diskette containing DRAFT.CFG in the disk drive when you
  536.      exit PC-Draft.
  537.  
  538.  
  539.      MicroSoft Mouse
  540.  
  541.      If you have a mouse compatible with Microsoft's Mouse driver software, PC-
  542.      Draft will automatically use the mouse if the mouse driver is loaded.
  543.  
  544.      Be sure the mouse driver is properly loaded (either with the CONFIG.SYS
  545.      DEVICE=MOUSE.SYS command, or from the keyboard (or in your AUTOEXEC.BAT)
  546.      run the MOUSE.COM program.
  547.  
  548.  
  549.  
  550.  
  551.      Page 4                                                          PC-Draft II
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.      Mouse movement emulates the arrow keys, the left button simulates the [F2]
  565.      key (to pop-up the menus),  the right button simulates the [Enter] key (to
  566.      terminate drawing commands and to select drawing modes when in zoom mode),
  567.      and both mouse buttons pressed together simulates the [Esc] key to exit
  568.      from a menu or process.
  569.  
  570.  
  571.      Other Mice
  572.  
  573.      Most other brands of mice should work as described above if:
  574.  
  575.      1.   They can be configured to emulate Microsoft's Mouse driver or:
  576.  
  577.      2.   You can setup your mouse to:
  578.  
  579.           a.   convert movement into the appropriate arrow key.
  580.           b.   simulate the [Enter] key with the right button.
  581.           c.   simulate the [F2] key with the left button.
  582.           d.   simulate the [Esc] key with both buttons (or the third button?).
  583.  
  584.      Please let us know if you have a problem with your mouse.
  585.  
  586.      If you do not have a mouse and intend to do much work with PC-Draft, it is
  587.      strongly recommended that you get one. You'll love the difference. Some
  588.      commands described below were specifically designed for mice. They do not
  589.      work too well without a mouse.
  590.  
  591.      If you are using the cursor keys instead of a mouse, it is strongly recom-
  592.      mended that you use one of the many shareware or public domain keyboard
  593.      speedup programs available. This will make cursor movement around the
  594.      graphics screen much nicer. If you have an IBM AT, look for SETKEY.COM on
  595.      your bulletin boards. If you have and XT or compatible, look for
  596.      QUICKEY.COM. Both of these were published in PC Magazine and can be down
  597.      loaded from their BBS. Also the shareware programs: 
  598.  
  599.                     FASTKEY.COM from:
  600.  
  601.                          Biologic Corp.
  602.                          P.O. Box 1267
  603.                          Manassas, Virginia  22110
  604.  
  605.                     and KBFIX2.COM from:
  606.  
  607.                          Skip Gilbrech
  608.                          90 Lexington Ave. #10-G
  609.                          New York, NY 10016   ( Compuserve: 71445,534 )
  610.  
  611.  
  612.      Printers
  613.  
  614.  
  615.  
  616.  
  617.      Introduction                                                         Page 5
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.      The current version of PC-Draft II will work with several families of
  632.      printers for graphics output; Some printers which claim to emulate the IBM
  633.      Graphics or Epson dot matrix do not support all resolution modes, so you
  634.      will have to experiment to see which is appropriate for your brand.
  635.  
  636.      Refer to the READ.ME file on the disk for information about additional
  637.      printer support.
  638.  
  639.  
  640.      Files used
  641.  
  642.      The only necessary files used by PC-Draft are the main code file:
  643.      DRAFT2.EXE and the configuration file: DRAFT2.CFG.  all other files are
  644.      optional.
  645.  
  646.  
  647.      File Names
  648.  
  649.      The file naming conventions used are also optional. However, it is recom-
  650.      mended that you follow them.  When PC-Draft saves a file of a particular
  651.      type, say a font file for instance, it uses the appropriate filename
  652.      extension unless you override it by entering a different extension.  This
  653.      helps prevent accidental data loss by overwriting files and by loading the
  654.      wrong type of file.
  655.  
  656.  
  657.      The default filename extensions are:
  658.  
  659.      Screen dump files:       filename.PIC
  660.      Drawing files:           filename.DWG
  661.      Pattern files:           filename.PAT
  662.      Font files:              filename.FON
  663.      Object files:            filename.OBJ
  664.      Macro files:             filename.MAC
  665.      Graph Point files:       filename.PTS
  666.      PIX program files:       filename.SCR
  667.      GEM IMG files:           filename.IMG
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.      Page 6                                                          PC-Draft II
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.                                       The Basics
  697.  
  698.      There are a few basic things you must know to start using PC-Draft and
  699.      begin making your own drawings. This chapter will give you a quick over-
  700.      view. Each drawing command and other parts of the PC-Draft system will be
  701.      dealt with in more detail in later chapters.
  702.  
  703.      Starting PC-Draft
  704.  
  705.      To start PC-Draft, type the command: DRAFT2 with the files DRAFT2.EXE and
  706.      DRAFT2.CFG on the currently logged drive. The Copyright notice will appear
  707.      for a moment, then it will display the graphics screen.
  708.  
  709.  
  710.  
  711.      Cursor Movement
  712.  
  713.      The cursor will appear as a small cross in center screen.  Press the cursor
  714.      movement keys on the numeric keypad (or move the mouse) to move about the
  715.      screen.
  716.  
  717.      Initially, the cursor will move 8 dots for each key pressed. As you move
  718.      the cursor you will notice that the X and Y location is shown in the
  719.      control panel at screen right. Also shown is the current cursor increment
  720.      value. With a mouse, the cursor moves smoothly along with the mouse move-
  721.      ment. You may find that for precise positioning, the arrow keys give you
  722.      more control. 
  723.  
  724.      Cursor Increment
  725.  
  726.      The amount the cursor moves (in dots or pixels) is called the cursor incre-
  727.      ment. To change the cursor increment value, enter a number (using the top
  728.      row of number keys, or press [Num Lock] to use the numeric key pad keys). 
  729.      For instance, enter 24 to cause the cursor to move 24 dots for each cursor
  730.      movement keystroke.
  731.  
  732.      You will quickly get into the habit of adjusting the cursor increment value
  733.      to a larger number to quickly move to a new position on the screen, then to
  734.      a smaller number (try 1) for detailed work.
  735.  
  736.      Suspend Cursor
  737.  
  738.      Pressing the [S] key Suspends the current cursor increment value, causing
  739.      the cursor to move one dot at a time.  Pressing [S] again restores the
  740.      increment value.  This allows you to quickly change from coarse to fine
  741.      movements and is also useful when creating graphics keyboard macros as
  742.      described below. Note that while in the [W]rite mode, you can suspend
  743.      cursor increment by pressing [Alt + S].
  744.  
  745.  
  746.  
  747.  
  748.  
  749.      Basics                                                               Page 7
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.      Change Cursor
  763.  
  764.      There are two cursor types (three if you have a mouse).  Initially, the
  765.      cursor appears as a small cross.  Press [K] ([K]ursor) to change the cursor
  766.      to a full screen cross.  This cursor type is helpful when positioning lines
  767.      and objects in line with other elements in your drawing. Press [K] again to
  768.      toggle between the two cursor types. If you have a MicroSoft mouse, you can
  769.      change the mouse cross cursor to an arrow by pressing [Alt + C]. Press it
  770.      again to return to the cross. You can still use the full screen cursor by
  771.      pressing [K].
  772.  
  773.  
  774.      Menu Selections
  775.  
  776.      Initially, the eight main menu selections are displayed across the top of
  777.      the screen. To make a selection, press its corresponding function key.  For
  778.      instance, press [F2] (or the [/] key) (or left mouse button) to display the
  779.      pop-up Draw functions menu.
  780.  
  781.      With the pop-up menu displayed you may now:
  782.  
  783.      1.   Press the Escape key: [Esc] (both mouse buttons), to exit from a menu
  784.           without making a choice.
  785.  
  786.      2.   Select a choice from the menu by:
  787.  
  788.           a.   press the [L]etter in brackets for your choice.
  789.           b.   use the arrow keys: [^] and [v] to move the reverse video cursor
  790.                to select your choice.  Then press [Enter] (or the mouse right
  791.                button) to make your selection.
  792.  
  793.      3.   Press the left or right arrow keys: [<] or [>] to move to another menu
  794.           (or move the mouse right or left).
  795.  
  796.      For example; press [F2], then press [B] for the [B]ox command, then press
  797.      [Enter]. The Draw menu will disappear.  Now, move the cursor. A box will
  798.      form with its diagonal corners determined by the original cursor position
  799.      and the opposing current cursor position.  When you are satisfied with the
  800.      final position of the box, press [Enter] (right mouse button) to complete
  801.      the [B]ox command.
  802.  
  803.      Most of the other menus work the same, press the function key, then up and
  804.      down arrows, then [Enter].
  805.  
  806.      Display Menu Bar
  807.  
  808.      By pressing the [F1] key, you can pop-off the menu bar to allow full screen
  809.      drawing.  When you press [F1] again, the menu bar will pop-up again. The
  810.      drawing obscured by the menu, will be untouched, but inaccessible, until
  811.      you pop-off the menu.
  812.  
  813.  
  814.  
  815.      Page 8                                                          PC-Draft II
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.      The Control Panel
  830.  
  831.      The panel along the right side of the screen shows:
  832.  
  833.      o    The current X and Y cursor location,
  834.      o    The current cursor increment value (C = 8),
  835.      o    The current drawing mode,
  836.      o    The status of the suspend (cursor increment) function,
  837.      o    The status of the snap function,
  838.      o    The current paint pattern is shown,
  839.      o    Below the pattern box, is a box that represents the full drawing are-
  840.           a. Within is a smaller box representing the current screen window. As
  841.           you move the screen window (with [Ctrl + >] for example), the box will
  842.           show your current location.
  843.      o    The number under the drawing box indicates the number of the current
  844.           screen window. This is the number you would enter when using the [.]
  845.           Move command to jump directly to a new screen window position.
  846.      o    The amount of free memory is shown at the bottom. As you move the
  847.           screen window to new areas of the full drawing, you will notice this
  848.           number getting smaller.
  849.  
  850.      You can pop-off the control panel by pressing [Alt + P] for full screen
  851.      drawing.
  852.  
  853.      The Drawing Area
  854.  
  855.                               +----+----+
  856.                Initial        |  1 |  2 | +----+----+
  857.                Screen   --->  +----+----+ |  3 |  4 |
  858.                Window         |  5 |  6 | +----+----+
  859.                               +----+----+ |  7 |  8 |
  860.                                 +----+----+----+----+
  861.                                 |  9 | 10 | 11 | 12 |
  862.                                 +----+----+----+----+
  863.                                 | 13 | 14 | 15 | 16 |
  864.                                 +----+----+----+----+
  865.                                 | 17 | 18 | 19 | 20 |
  866.                                 +----+----+----+----+
  867.                                 | 21 | 22 | 23 | 24 |
  868.                                 +----+----+----+----+
  869.                                 | 25 | 26 | 27 | 28 |
  870.                                 +----+----+----+----+
  871.  
  872.                                    The Drawing Area
  873.  
  874.      One screen represents 640 pixels or dots horizontally, and 200 dots verti-
  875.      cally (with the menu bar and control panel popped-off).  All drawing
  876.      operations are confined to this screen area.  You can draw a line to the
  877.      screen edge only.  However, the full drawing area available to PC-Draft is
  878.  
  879.  
  880.  
  881.      Basics                                                               Page 9
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.      1280 dots wide by 700 dots vertically. visualize the monitor screen as a
  895.      window positioned over a larger drawing area.  You can move this window up,
  896.      down, left and right to reach all parts of the drawing. The full drawing
  897.      size is two screens wide, and three and one half screens high.
  898.  
  899.      Moving around
  900.  
  901.      Here's how you move the screen window around the full drawing. To move the
  902.      screen window down on the larger drawing, press the [Ctrl + PgDn] keys
  903.      together. The screen moves one half screen width for each window movement.
  904.      To move up, press [Ctrl + PgUp]. [Ctrl + >] moves right, and [Ctrl + <]
  905.      moves left. When you reach the edge of the drawing area, you'll know it
  906.      (beep).
  907.  
  908.      Direct Move
  909.  
  910.      Pressing the [.] (the period or shifted [>]) key will pop-up a prompt box
  911.      asking for a screen window number. You can enter a number from 1 to 28 to
  912.      directly move the display window to a new area of the larger drawing.
  913.  
  914.      The full drawing is logically divided into 28 sections. Each section
  915.      represents one forth of one screen's area.
  916.  
  917.      When PC-Draft is first started, drawing sections 1, 2, 5 and 6 are display-
  918.      ed. To move the screen window to the bottom right of the drawing area;
  919.      press [.] and enter 23 to display drawing sections 23, 24, 27 and 28.
  920.  
  921.      Home
  922.  
  923.                Press [H] to move the cursor to center screen.
  924.  
  925.  
  926.      Using markers
  927.  
  928.      Sometimes you would like to set a marker at one point in your drawing to be
  929.      able to return to the same position after performing some other activity.
  930.      PC-Draft II provides a facility for up to ten separate markers that you can
  931.      set, change, and move to.
  932.  
  933.      Setting markers
  934.  
  935.      First move the cursor to the position you wish to mark. Then: Press [Shift
  936.      + any function key]. For example [Shift + F1].
  937.  
  938.      Jump to marker
  939.  
  940.      Press [Alt + the function key]. For example to jump back to the position
  941.      set with [Shift + F1], press [Alt + F1].
  942.  
  943.  
  944.  
  945.  
  946.  
  947.      Page 10                                                         PC-Draft II
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.      If you have moved the screen window to another area of the full drawing,
  961.      from where a marker is set, the screen window will be moved as necessary to
  962.      return to where the marker is set. This provides a convenient way to jump
  963.      to all parts of a large drawing.
  964.  
  965.  
  966.      Clearing the Screen
  967.  
  968.      To clear the current screen window (not the whole drawing), press the [F9]
  969.      key.  A warning pop-up will ask if you're sure.  Press the [Y] key for
  970.      [Y]es, if you are.
  971.  
  972.      To clear the entire drawing, press [Ctrl + F9]. A warning pop-up will ask
  973.      if you're sure.  Press the [Y] key for [Y]es, if you are.
  974.  
  975.      Erasing
  976.  
  977.      Since this is a pixel (raster) based graphics program, erasing selected
  978.      image areas is not as easy as it would be in an object based CAD package
  979.      where you can erase selected operations rather than areas of the screen.
  980.      Here are a few different ways to erase:
  981.  
  982.           o    Use the [E]rase command to remove the image as you move the
  983.                cursor. The size of the erase box is controlled by the current
  984.                cursor increment value. Make this value larger to erase larger
  985.                areas. (The Replace drawing mode must be on.)
  986.  
  987.                Note: if you do not have a mouse, erasing with the cursor keys is
  988.                not as smooth an operation. Suspend the cursor increment value
  989.                (with the [S] key), then as you move the erase box, you will
  990.                remove all pixels in your path.
  991.  
  992.           o    Select the Transparent drawing mode (with [F5]), then re-trace
  993.                the image to be erased.
  994.  
  995.           o    Select an all black pattern (with [F4], usually pattern number
  996.                1), then with the [R]ectangle command, surround the area to be
  997.                erased. The drawing mode must be set to Replace. (The Replace
  998.                drawing mode must be on.)
  999.  
  1000.           o    Surround the area to be erased with the [W]indow command, then
  1001.                press [F9] to clear the current window.
  1002.  
  1003.      Undo Command
  1004.  
  1005.      Whenever you have performed some drawing operation that changed the drawing
  1006.      in a way you did not expect (you goofed), you can press [U] to Undo. You
  1007.      can only undo the previous operation such as [B]ox or [P]aint, you cannot
  1008.      undo changes made before the last one. This is especially handy when your
  1009.      [P]aint operation spills outside of a bounded area unexpectedly.
  1010.  
  1011.  
  1012.  
  1013.      Basics                                                              Page 11
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.      Saving Your Work
  1028.  
  1029.      Once enough of your masterpiece is constructed to make you nervous about
  1030.      losing your work, you should save it to a file on disk.  You can save the
  1031.      current screen window to a .PIC file or you can save the entire drawing to
  1032.      a .DWG file.
  1033.  
  1034.           1.   Press the [F3] key to pop-up the File menu.
  1035.  
  1036.           2.   Select [S]creen to save just the current screen window (just what
  1037.                is currently displayed).
  1038.  
  1039.      Or, select [D]rawing to save your drawing that may consist of several
  1040.      screens worth. (Only those screens that you have visited will be saved. If
  1041.      you have not moved from the initial screen window, the drawing file will be
  1042.      the same size as a screen ".PIC" file.)
  1043.  
  1044.           3.   Then, select the operation from the next pop-up: [S]ave. 
  1045.  
  1046.           4.   you will be asked whether you want to save it in [C]ompressed or
  1047.                [N]ormal format. If you choose Normal format, the image will be
  1048.                saved without compression. An un-compressed .PIC file is a
  1049.                straight byte for byte dump of the high-resolution screen buffer
  1050.                and is compatible with many other graphics programs. If you
  1051.                choose Compressed format, the file will take less disk space
  1052.                (saving an average of 66%).
  1053.  
  1054.      When you read in a .PIC or .DWG file, PC-Draft will detect whether the file
  1055.      has been compressed or not and load it properly.
  1056.  
  1057.                Note: The I/O time is increased for saving and loading compressed
  1058.                files. You might want to use normal format while you are working
  1059.                on a drawing to maintain the speed advantage, then save it in
  1060.                compressed format only when you are finished making changes.
  1061.  
  1062.      The compression method is very rudimentary. A trade-off had to be made
  1063.      given code space limitations and permissible I/O delays. You can achieve a
  1064.      much greater compression and saving of disk space if you use ARC.EXE to
  1065.      archive your drawings (sometimes greater than 90%).
  1066.  
  1067.           5.   Then, enter a filename in the next pop-up.  Enter any valid DOS
  1068.                file path specification, including drive and sub-directories
  1069.                unless you want to save the file on the currently logged drive
  1070.                and path.
  1071.  
  1072.      You need not enter a filename extension. PC-Draft will automatically add
  1073.      the appropriate extension for you if you leave it off.  Simply enter a
  1074.      filename such as: "DRAWING1" or "A:SUBDIR1\DRAWING1"
  1075.  
  1076.  
  1077.  
  1078.  
  1079.      Page 12                                                         PC-Draft II
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.      PC-Draft will save your drawing as: DRAWING1.DWG (or: DRAWING1.PIC if you
  1093.      selected to save the screen). (See note below for directory searches.)
  1094.  
  1095.           6.   Press [Enter] to complete the operation.
  1096.  
  1097.      Once you've done this a few times, the operation of saving and retrieving
  1098.      screen and drawing files should become easy, intuitive and obvious with the
  1099.      help of the pop-up prompts.  The method is the same for other file opera-
  1100.      tions such as saving and retrieving patterns, fonts, objects.
  1101.  
  1102.      Directory Search
  1103.  
  1104.      When entering a filename for any file operation, you can obtain a directory
  1105.      search by pressing either the up or down arrow keys [^] or [v]. Any exist-
  1106.      ing files with extensions that match the current default will be displayed
  1107.      in the file path name window. For example, when you are retrieving a screen
  1108.      file, press the [^] key in response to the filename prompt, the name of the
  1109.      first file with a .PIC extension will be shown. Press the [^] to show the
  1110.      next (if any) .PIC file, and so on.  When the file you want to retrieve is
  1111.      shown, press [Enter] to retrieve it.
  1112.  
  1113.      To search the directory other than the current one, enter the DOS path
  1114.      information, for instance to refer to the directory containing pattern
  1115.      files, enter: "FON\", then press [^] or [v]. (You must have the '\' at the
  1116.      end.)
  1117.  
  1118.      Other useful keys to use when entering filenames:
  1119.  
  1120.      o    [<] and [>] move the cursor non-destructively.
  1121.  
  1122.      o    Backspace [<-] moves left destructively.
  1123.  
  1124.      o    The [End] key clears the field from the cursor position to the end.
  1125.  
  1126.      o    The [Esc] key restores the field to its original contents.
  1127.  
  1128.  
  1129.      Ending PC-Draft
  1130.  
  1131.      Press [F10] to exit PC-Draft. If you have made changes to your drawing but
  1132.      not saved it yet, a warning pop-up will ask if you want to. Similarly,
  1133.      changes to the current font, pattern and/or graph point values, will be
  1134.      checked and you will be warned before actually exiting to DOS. If everyth-
  1135.      ing is safely saved, when you press [F10] you will immediately be returned
  1136.      to the DOS prompt.
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.      Basics                                                              Page 13
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.                                    Drawing Commands
  1159.  
  1160.      This chapter discusses each drawing command in detail. PC-Draft provides
  1161.      both a menu based and a command based user interface. When you begin to
  1162.      learn how PC-Draft works you might find the drawing menu useful in select-
  1163.      ing the various commands. But as you become more proficient, you will
  1164.      probably find the single key command method easier and faster.
  1165.  
  1166.      Each basic drawing operation can be specified in two ways.  You can press
  1167.      [F2] (or mouse left button) to choose from the Draw menu, or you can press
  1168.      the mnemonic character associated with the command.  For example to select
  1169.      the line command either press [F2] then press [v] enough times to move the
  1170.      menu selection bar down to the "[L]ine" choice, then press [Enter] or you
  1171.      can choose from the menu by pressing: [F2][L][Enter] or don't use the menu
  1172.      at all: simply press [L] (the single key command mode).
  1173.  
  1174.      Most drawing operations follow the same sequence of operations: 
  1175.  
  1176.      1.   Position the cursor to a starting anchor point.
  1177.      2.   Select the drawing command.
  1178.      3.   Move the cursor to the desired ending point.
  1179.      4.   Press any key other than cursor movement or numeric key to complete
  1180.           the operation.
  1181.  
  1182.      Remember, at any time while moving the cursor, you can fine tune cursor
  1183.      movement or speed up cursor movement by pressing the numeric keys to change
  1184.      the current cursor increment.  Also you can press the [S] key to [S]uspend
  1185.      the cursor increment for fine work, and the [K] key to change cursor type.
  1186.  
  1187.      Line
  1188.  
  1189.      The basic element of most of your drawings is the line. The method for
  1190.      drawing lines is typical of most of the other drawing commands as well,
  1191.      involving these four steps:
  1192.  
  1193.      1.   Move the cursor to one end of the future line.
  1194.      2.   Press [L] to start the line.
  1195.      3.   Move the cursor to the other end.
  1196.      4.   Press [Enter].
  1197.  
  1198.      I think you get the idea.
  1199.  
  1200.      Multi-Line
  1201.  
  1202.      If you want to draw several connected line segments, use the [M]ulti-line
  1203.      command. Press [M] to start, move the cursor to the end point, press
  1204.      [Enter] to anchor that end, move to the next end point, press [Enter], and
  1205.      so on. Press [Esc] to end the multi-line command.
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.      Page 14                                                         PC-Draft II
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.      Free Draw
  1225.  
  1226.      The [F]ree draw command lets you draw free form lines. A continuous series
  1227.      of connected lines are drawn as you move the cursor. The coarseness of the
  1228.      line is determined by the value of the cursor increment (or how fast you
  1229.      move the mouse). Set the cursor increment value to 1 (or [S]uspend) to draw
  1230.      free form lines dot by dot (or move the mouse slower).
  1231.  
  1232.      Box
  1233.  
  1234.      Press [B] to begin the [B]ox command. The starting position is one corner
  1235.      of the box, the ending cursor position is the opposite corner.
  1236.  
  1237.      Rectangle
  1238.  
  1239.      This is similar to [B]ox, but the rectangle is filled with the current fill
  1240.      pattern. The [R]ectangle command is useful for erasing areas of the draw-
  1241.      ing, by selecting a completely blank pattern as the current fill (and the
  1242.      [R]eplace drawing mode). See below for how to select patterns.
  1243.  
  1244.      Circle
  1245.  
  1246.      Press [C] to draw a circle. The starting position is the center of the
  1247.      circle. Move the cursor outward to establish the diameter and press
  1248.      [Enter]. 
  1249.  
  1250.      Ellipse
  1251.  
  1252.      From the keyboard you start the ellipse command with [Alt + E]. As you move
  1253.      the cursor, the area of the ellipse is indicated by a rectangle. Move the
  1254.      cursor outward to establish the size of the ellipse and press [Enter]. Why
  1255.      use the rectangle instead of the ellipse shape? We decided that drawing,
  1256.      erasing, and re-drawing the actual ellipse shape as you move the cursor was
  1257.      too slow, interfering with the normal flow of drawing. 
  1258.  
  1259.      Note that from the drawing commands menu, you select the ellipse command
  1260.      with the [I] key.
  1261.  
  1262.      Curve
  1263.  
  1264.      This command works a little differently than the above two-point commands.
  1265.      You specify a series of points on the screen through which a smooth spline
  1266.      curve will be drawn. Position the cursor to the starting point for the
  1267.      curve, then press [V] for cur[V]e. Now, move the cursor to the next point,
  1268.      press any key to set a new point. A straight line will be temporarily drawn
  1269.      between points to help you keep track of the shape of your image. Continue
  1270.      entering points (up to 20 points are allowed) until you have defined the
  1271.      shape of the curve. To draw the curve, press the [Esc] key.
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.      Drawing Commands                                                    Page 15
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.      Paint
  1291.  
  1292.      Position the cursor within a bounded area on the screen. Press [P] to
  1293.      [P]aint the area with the current fill pattern. See below for how to select
  1294.      and edit patterns. Note that the selected area must be tightly bounded by
  1295.      white dots. A single missing dot provides an escape route for the pattern
  1296.      to fill adjacent areas.
  1297.  
  1298.      Arc
  1299.  
  1300.      Drawing arcs is a two step process:
  1301.  
  1302.      1.   Draw a circle where you want the arc with the correct diameter.
  1303.  
  1304.           a.   Position the cursor to the center of the arc.
  1305.           b.   Press [A] to start the arc command.
  1306.           c.   Move the cursor outward to establish the diameter. (A full circle
  1307.                will be drawn temporarily.)
  1308.           d.   Press [Enter] to set the diameter.
  1309.  
  1310.      2.   Now draw a box around the portion of the circle you want to retain as
  1311.           the arc:
  1312.  
  1313.           a.   Position the cursor to one corner of the box.
  1314.           b.   Move to the opposite corner surrounding the selected portion of
  1315.                the circle.
  1316.           c.   Press [Enter] to complete the arc command.
  1317.  
  1318.      Text
  1319.  
  1320.      To add text to your drawing, position the cursor and press [T] to enter
  1321.      [T]ext mode. The cursor will become an underline and what you type next
  1322.      will be shown using the built-in IBM graphics font. You can use backspace
  1323.      and the [<] and [>] arrow keys for simple editing and the [Enter] key to
  1324.      move to the start of the next line. 
  1325.  
  1326.      To exit text mode, press [Esc]. 
  1327.  
  1328.      Note: that this mode always positions the text on an 8 dot boundary both
  1329.      vertically and horizontally. To position the text between this 8 dot grid,
  1330.      first type the text, then exit text mode and use the [O]bject and [D]rop
  1331.      commands to move it to a new location.
  1332.  
  1333.      As you type, the cursor will wrap to the next line when you reach the right
  1334.      edge of the current window. You can set a smaller window with the [Alt + W]
  1335.      key to restrict the text to a selected area.
  1336.  
  1337.      Another way to add text is to import from an ASCII text file. You do this
  1338.      by adding two characters to your text file, a 'T' at the beginning and a
  1339.  
  1340.  
  1341.  
  1342.  
  1343.      Page 16                                                         PC-Draft II
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.      '%' at the end. this makes the file a valid PC-Draft Macro file. Refer to
  1357.      the Macro section for an example.
  1358.  
  1359.      Write
  1360.  
  1361.      Pressing [W] places you in [W]rite mode. The cursor changes to a box the
  1362.      size of the currently loaded graphics font. When first started PC-Draft
  1363.      does not have a font loaded. To experiment with [W]rite mode, press
  1364.      [F3][F][R] to retrieve a font. In the filename pop-up prompt box enter:
  1365.      FON\EURO and press [Enter]. The eurostyle font will be loaded from the font
  1366.      sub-directory: FON. Now enter [W]rite mode. You can move the box cursor
  1367.      with the arrow keys and enter text in your drawing.
  1368.  
  1369.      While in [W]rite mode you can suspend cursor increment by pressing
  1370.      [Alt + S], since the [S] key is used to write S's.
  1371.  
  1372.      Object
  1373.  
  1374.      By Object, we mean a portion of the drawing, a bit mapped image. The
  1375.      [O]bject command allows you to grab an area of the drawing from within the
  1376.      current screen window. Once you have grabbed an area, you've got an object
  1377.      which can then be [D]ropped (re-drawn) in a new position. Also objects can
  1378.      be saved in a file (.OBJ files) to create a library of objects. And, of
  1379.      course, object files can be retrieved to be added to other drawings.
  1380.  
  1381.      This command works like the [B]ox command. Position the cursor to one
  1382.      corner of the area to be grabbed. Press [O]. Then move the cursor to the
  1383.      opposite corner of the area and press [Enter] to grab it.
  1384.  
  1385.           Note:  The [O]bject and [D]rop commands allow for copying areas of the
  1386.           screen. If you want "Cut and Paste" -- deleting the original object
  1387.           area, use the "blank pattern" method for erasing as described in the
  1388.           previous chapter. So, you would: grab an [O]bject, erase it with
  1389.           [R]ectangle, then [D]rop the object.
  1390.  
  1391.      Drop Object
  1392.  
  1393.      When you have an Object currently in memory either by using the [O]bject
  1394.      command or by retrieving it from an .OBJ file, you use the [D]rop command
  1395.      to re-draw the object in the current drawing.
  1396.  
  1397.      When you press [D], the cursor takes the form of a box the size of the
  1398.      current object. Move the box to the position in your drawing where you want
  1399.      the image and press [Enter].
  1400.  
  1401.      Object Functions
  1402.  
  1403.      When you have an Object in memory as discussed above, you can manipulate it
  1404.      in several ways. All of the following commands are accessible only by
  1405.      selecting [O]bject from the Draw menu:
  1406.  
  1407.  
  1408.  
  1409.      Drawing Commands                                                    Page 17
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.           r[O]tate       turns the current object 90 degrees clockwise. Rotate
  1424.                          twice to turn the current object upside down,
  1425.  
  1426.           [R]everse      reverses the object from left to right,
  1427.  
  1428.           [E]nlarge      doubles the width of the current object,
  1429.  
  1430.           [C]ontract     halves the width of the object,
  1431.  
  1432.           [L]arge        doubles the height of the current object,
  1433.  
  1434.           [S]mall        halves its height.
  1435.  
  1436.      Although nothing seems to happen on the screen, the current Object will be
  1437.      affected in memory, which you can see by [D]roping it.
  1438.  
  1439.           Note: that for the sake of processing speed, objects are stored and
  1440.           manipulated on byte boundaries. If you do not get the result you want
  1441.           with one of the object commands. (Perhaps a part of the object is
  1442.           truncated.) Try re-grabbing the object with a greater margin (of blank
  1443.           space) around it. Then the manipulating commands will not affect the
  1444.           edges.
  1445.  
  1446.      Transfer to Font
  1447.  
  1448.      This command ([X]fer) is like the [O]bject command. With [X]fer, you grab
  1449.      an area of the drawing to be copied to a specific character in the current
  1450.      graphics font. When you press [X], the cursor becomes a box the size of the
  1451.      current font. Move the box to the image to be grabbed and press the key for
  1452.      the character to copy to. For example, to grab an image to use for the A
  1453.      character, press [A]. You can then move to another area and grab again for
  1454.      another character. Press [Enter] to exit this mode.
  1455.  
  1456.           Note: that you cannot [X]fer to numeric characters (0 to 9), or the
  1457.           [S] key because these keys are used to change the cursor increment
  1458.           value. First [X]fer the image to another temporary character. Then use
  1459.           the font copy function: [F10] (from the font editing window) to copy
  1460.           from the temporary to the one you want.
  1461.  
  1462.      Zoom
  1463.  
  1464.           [Z]oom allows you to edit a portion of your drawing at the pixel level
  1465.           more easily by enlarging the dots. Position the cursor in the center
  1466.           of the area to zoom and press [Z]. When the box appears, you can move
  1467.           the cursor with the arrow keys. The [Ins] key (mouse right button)
  1468.           toggles pixels on or off. When the cursor is over a blank space,
  1469.           pressing [Ins] will turn on the pixel there. When the cursor is over a
  1470.           pixel already on, pressing [Ins] will turn it off.
  1471.  
  1472.  
  1473.  
  1474.  
  1475.      Page 18                                                         PC-Draft II
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.      The [F9] (mouse left button) key lets you cycle through three drawing
  1489.      modes:
  1490.  
  1491.      o    Press [F9] once to draw pixels as you move.
  1492.      o    Press [F9] again to erase as you move.
  1493.      o    Press [F9] again and you are back to the original state, no change
  1494.           will be made as you move the cursor.
  1495.  
  1496.      While in Zoom mode these function keys perform new functions:
  1497.  
  1498.           [F1] shifts the zoomed image left one pixel.
  1499.           [F2] shifts the zoomed image right.
  1500.           [F3] fills the zoomed area (all white).
  1501.           [F4] clears the zoomed area (all black).
  1502.           [F5] reverses each pixel in the zoomed area.
  1503.           [F8] will print the screen with the zoom window.
  1504.  
  1505.  
  1506.      Goodies
  1507.  
  1508.      The following additional commands are accessible by menu from the goo[D]ies
  1509.      sub-menu. To see these selections, press [F2][D].
  1510.  
  1511.      Just paint
  1512.  
  1513.      Press the [J] key to begin the Just Paint mode. In this mode, as you move
  1514.      the cursor, a trail of the current pattern is left. The size of this trail
  1515.      is determined by the current cursor increment value. Like the Spray Can
  1516.      command, this works best with a mouse.
  1517.  
  1518.      To end Just Paint mode press [Esc] or both mouse buttons.
  1519.  
  1520.      SpraY Can
  1521.  
  1522.      Each time you press the [Y] key a random spray of pixels is painted within
  1523.      the bounds of the current cursor increment value using the current pattern.
  1524.      As the key is repeated, more pixels will be filled in. This command is more
  1525.      useful (easier to use) if you have a mouse, because you can move the mouse
  1526.      as you hold down the right button to spray in a continuous line, whereas,
  1527.      without the mouse, the cursor jumps by the current cursor increment value.
  1528.  
  1529.      If the current drawing mode is Transparent, the Spray Can command will
  1530.      always fill approximately 50% of the area (if you hold the [Y] down) since
  1531.      as new random pixels are drawn they will cancel out existing pixels.
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.      Drawing Commands                                                    Page 19
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.      When the drawing mode is set to "replace", blank pixels in the current
  1555.      pattern also affect (erase) the underlying image. If the drawing mode is
  1556.      set to "overlay", only "on" pixels in the pattern are painted. You can see
  1557.      how this works if you:
  1558.  
  1559.      1.   Select the solid pattern (pattern 0).
  1560.      2.   Select the Replace drawing mode.
  1561.      3.   Use the [R]ectangle command to draw a solid box.
  1562.      4.   Select another pattern with some empty space such as lines.
  1563.      5.   Start the Spra[Y] command, and draw the spray across the solid box.
  1564.           You will notice that the pattern is slowly etched into the solid area.
  1565.      6.   Now, change the drawing mode to Overlay and try step 4 and 5 again.
  1566.  
  1567.      Kursor
  1568.  
  1569.      This toggles the cursor shape back and forth from the small x to the full
  1570.      screen cross.
  1571.  
  1572.      Mouse cursor
  1573.  
  1574.      If you are using a MicroSoft compatible mouse, this command changes to the
  1575.      arrow cursor. From the keyboard press [Alt + C]. Select this command again
  1576.      to return to the normal cursor.
  1577.  
  1578.      grId
  1579.  
  1580.      To aid in positioning the cursor in line with other elements in your
  1581.      drawing, press [I] to draw a grid. The grid will be spaced horizontally and
  1582.      vertically according to the current cursor increment value. For example,
  1583.      before pressing [I], enter [48] to set your cursor increment to 48 pixels,
  1584.      then when you press [I] a 48 by 48 grid will appear.
  1585.  
  1586.      Note: When the grid is on, the drawing mode is always set to Transparent.
  1587.      This is so that the grid does not interfere with the actual drawing.
  1588.      However, you must be careful when you add drawing elements with the grid
  1589.      on, that you account for transparent mode. Also, when you grab an object
  1590.      with the grid on, the grid will be grabbed as well, so again, be careful.
  1591.      Remember this is a pixel graphics program not an object oriented CAD
  1592.      package where true layering would be more possible.
  1593.  
  1594.      The grid is always drawn in relationship to the full drawing area rather
  1595.      than just the screen. This means that as you move the screen window the
  1596.      grid is redrawn and adjusted for that window with its starting point
  1597.      remaining at the upper left corner of the full drawing area.
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.      Page 20                                                         PC-Draft II
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.      Quick view
  1621.  
  1622.      This displays the full drawing in one screen window to give you an overall
  1623.      view. From the keyboard press [Q]. Press the [Esc] key to return to the
  1624.      normal drawing.
  1625.  
  1626.      sNap
  1627.  
  1628.      When you press [N] to turn snap on, the cursor will snap into position on a
  1629.      grid intersection (whether grid is on or not). The grid intersection in
  1630.      question is determined by the current cursor increment value in relation-
  1631.      ship to the upper left corner of the full drawing area (as is true for the
  1632.      grid command above). This means that even if you have grid on, if you then
  1633.      change the cursor increment, then you turn snap on, the cursor will snap to
  1634.      the new cursor increment grid, not the grid displayed.
  1635.  
  1636.      Snap is one command that does not work well with the mouse, use the cursor
  1637.      keys instead.
  1638.  
  1639.      Color
  1640.  
  1641.      This changes the foreground color to one of the possible 15 standard IBM
  1642.      Color Graphic Adapter colors. From the keyboard press [Ctrl + F1]. Each
  1643.      time you execute this command, the color is cycled to the next in the list,
  1644.      eventually repeating.
  1645.  
  1646.      Window
  1647.  
  1648.      The [W]indow command allows you to designate a rectangular area of the
  1649.      screen to contain subsequent drawing operations. Once you have created a
  1650.      smaller than normal window (normally the drawing window is the full
  1651.      screen), the cursor will not move outside the borders of your window and
  1652.      lines and fills will not spill out. You specify the area of the window
  1653.      similar to the way you draw a box. Position the cursor to a staring corner,
  1654.      press [Alt + W], move to an opposite corner, press [Enter]. To undo the
  1655.      window, press [Alt + W] again. This command is not on the menu. 
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.      Drawing Commands                                                    Page 21
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.                                        Patterns
  1687.  
  1688.      Patterns are created as 8 by 8 pixel grids which are repeated to fill
  1689.      areas. PC-Draft keeps 8 patterns resident in memory at a time which are
  1690.      used by the [R]ectangle and [P]aint commands to fill areas and by the
  1691.      spra[Y] and [J]ust paint commands. Patterns are stored in .PAT files in the
  1692.      PAT sub-directory. You can create your own patterns or edit those that come
  1693.      with PC-Draft. The Patterns may be seen on the Pattern menu by pressing
  1694.      [F4].
  1695.  
  1696.      Loading Patterns
  1697.  
  1698.      Press the sequence: [F3][P][R] for "File menu, [P]atterns, [R]etrieve".
  1699.      Then in the filename prompt box, enter: [PAT\], then press [^] or [v] to
  1700.      step through the directory of patterns. Press [Enter] to retrieve a pat-
  1701.      tern.
  1702.  
  1703.      Selecting Patterns
  1704.  
  1705.      Press [F4] to display the list of current patterns. Either press the number
  1706.      of the pattern you want, or move the arrow cursor to point to it, then
  1707.      press [Enter] to make it the current pattern.
  1708.  
  1709.      Creating and changing Patterns
  1710.  
  1711.      Once you have selected a pattern as "current", return to the pattern pop-up
  1712.      by pressing [F4], then press [E] to edit the current pattern. Within the
  1713.      pattern editing box, you will see happy faces representing pixels that are
  1714.      "on". The cursor position is shown as a small box when over an "off" pixel
  1715.      and as a solid face when over an "on" pixel.
  1716.  
  1717.      You can move with the arrow keys (or mouse) and toggle pixels on and off
  1718.      with the space bar (mouse left button).
  1719.  
  1720.  
  1721.      Saving Patterns
  1722.  
  1723.      If you create your own patterns, you must save them in a .PAT file. Press
  1724.      [F3][P][S] for: "File menu, [P]atterns, [S]ave". Enter a filename (no
  1725.      extension, PC-Draft will add .PAT as the default extension).
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.      Page 22                                                         PC-Draft II
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.                                        Objects
  1753.  
  1754.      Above we discussed Objects and how to grab an area of the drawing as an
  1755.      object with the [O]bject command and then [D]ropped in a new position.
  1756.      Objects can also be saved in a file for later retrieval.
  1757.  
  1758.      Saving Objects
  1759.  
  1760.      To save your current object (after you have performed an [O]bject command),
  1761.      press [F3][O][S] for: "File menu, [O]bject, [S]ave". Then enter a filename
  1762.      (PC-Draft will add the default .OBJ filename extension).
  1763.  
  1764.  
  1765.      Retrieving Objects
  1766.  
  1767.      PC-Draft comes with several example object files in the OBJ sub-directory.
  1768.      Press [F3][O][R] to retrieve an object. In the filename prompt box enter:
  1769.      [OBJ\] and press [^] or [v] to step through the object directory. Press
  1770.      [Enter] to retrieve.
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.      Objects                                                             Page 23
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.                                         Fonts
  1819.  
  1820.      With PC-Draft you can load, edit and create a variety of fonts. Each font
  1821.      is stored as a file with a .FON extension.  Fonts may consist of characters
  1822.      or may be all symbols.
  1823.  
  1824.  
  1825.      Using Fonts
  1826.  
  1827.      You can load an existing font by pressing: [F3][F][R] for: "File menu,
  1828.      [F]ont, [R]etrieve". In the filename prompt box, enter: "FON\" and press
  1829.      [^] or [v] to step through the font directory. Press [Enter] to retrieve.
  1830.  
  1831.      Once you have loaded a font, when you press [W] (for [W]rite) the cursor
  1832.      becomes a box the size of the font. Some fonts contain only a subset of the
  1833.      alphabet. So, if nothing happens when you try to type a character in
  1834.      [W]rite mode, perhaps the current font has no character defined for that
  1835.      key. Try uppercase. To leave [W]rite mode, press [Enter] or [Esc].
  1836.  
  1837.  
  1838.      Creating, changing Fonts
  1839.  
  1840.      Press [F6] to pop-up the font editing window. You will see the filename of
  1841.      the current font on the top line followed by the current key shown in
  1842.      brackets (also on the top line). The current range of characters in the
  1843.      current font is shown on the next two lines in the window as, for instance:
  1844.      "START: A", "END: Z". This means that this font contains a character for
  1845.      each keyboard character between uppercase A to Z. It is important to make
  1846.      the distinction between font characters and keyboard characters. With some
  1847.      fonts loaded, for example, pressing the [A] key may draw an Apple rather
  1848.      than an 'A'.
  1849.  
  1850.      Also shown at the top of the font window is the current font's height and
  1851.      width. These are expressed in pixels. The maximum character height is 32
  1852.      pixels. The maximum width is 48.
  1853.  
  1854.      Warning:  you should not change the height and width of an existing font.
  1855.      Set these values only when you are creating a new font. If you do change
  1856.      these in an existing font, you will get scrambled images when writing with
  1857.      that font. The same applies to the range of characters in a font. Do not
  1858.      change this after the font is defined.
  1859.  
  1860.      The "SPACE:" field indicates the amount of space needed for the particular
  1861.      character currently displayed. By varying this from character to character,
  1862.      you can create proportionally spaced fonts. For instance, in a font whose
  1863.      size is 32 dots high by 24 dots wide, the 'I' character may need 8 dots of
  1864.      space, while the 'M' character would need 24 dots. To change this value
  1865.      press [F6].
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.      Page 24                                                         PC-Draft II
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.      When you press any character key that falls within the range of the current
  1885.      font, that character will be displayed for editing. You can move the cursor
  1886.      with the arrow keys. Similar to the [Z]oom command discussed above, the
  1887.      [F9] key (mouse left button) controls the editing of pixels:
  1888.  
  1889.      o    Press [F9] once to draw pixels as you move.
  1890.      o    Press [F9] again to erase as you move.
  1891.      o    Press [F9] again and you are back to the original state, no change
  1892.           will be made as you move the cursor.  In this mode, the [Ins] (mouse
  1893.           right button) key will toggle the current pixel.
  1894.  
  1895.      The usage of the other function keys is shown in the Font window:
  1896.  
  1897.      [F1] Shifts the current character left one pixel.
  1898.      [F2] Shifts it right.
  1899.      [F3] Fills the entire character.
  1900.      [F4] Clears it.
  1901.      [F5] Reverses each pixel.
  1902.      [F6] Allows you to change the character size of the font and/or the space
  1903.           for the current character.
  1904.      [F7] Allows you to change the range of characters included in this font.
  1905.      [F8] Prints the screen, including the font window.
  1906.      [F9] Toggle the setting or clearing of pixels.
  1907.      [F10]     Allows you to copy the image from another character to the
  1908.                current one.
  1909.  
  1910.           Note: that you can copy images drawn on the regular drawing area into
  1911.           specified characters in the font with the [X]fer command described in
  1912.           the Drawing Commands section above.
  1913.  
  1914.  
  1915.      Saving Fonts
  1916.  
  1917.      To save a font, press: [F3][F][S] for "File menu, [F]ont, [S]ave". And
  1918.      enter a filename. PC-Draft will automatically add the .FON file extension.
  1919.  
  1920.           Note: that fonts do not necessarily have to contain characters. They
  1921.           provide a convenient way to store a group of symbols or objects, so
  1922.           that they are available in memory all at once. For example the font
  1923.           file: FLOW.FON contains objects designed to draw flow charts:
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.      Fonts                                                               Page 25
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.                                         Macros
  1951.  
  1952.      The Macro feature of PC-Draft provides a way to store a sequence of key-
  1953.      strokes in a .MAC file for later playback. This is another way to create a
  1954.      library of images. MAC files are stored as normal ASCII text files and can
  1955.      be edited by your favorite text editor. As well as a way of saving drawing
  1956.      commands, macros can be used to provide a variety of interesting animation
  1957.      effects.
  1958.  
  1959.  
  1960.      Using Macros
  1961.  
  1962.      To start the playback of a macro (for example use one of the samples
  1963.      supplied with PC-Draft), press [F3][M][R] and in the filename prompt box
  1964.      enter: [MAC\] and press [^] or [v] to step through the MAC directory. Press
  1965.      [Enter] to start. The sequence of keystrokes stored in the selected macro
  1966.      file will be immediately played back.
  1967.  
  1968.      By changing the current cursor increment value, and then replaying the
  1969.      macro, you can redraw a given shape larger or smaller (as long as the
  1970.      cursor increment value was not changed within the macro itself).
  1971.  
  1972.  
  1973.      Creating Macros
  1974.  
  1975.      To start creating a new macro, press [F3][M][S], and enter a filename. When
  1976.      you press [Enter] to return to the drawing screen, each keystroke from that
  1977.      point on will be recorded and saved in the specified file.
  1978.  
  1979.      To end the recording of keys, press [%] (the percent symbol key). The .MAC
  1980.      file will be closed. You can then replay the macro in different positions,
  1981.      and with different cursor increment values.
  1982.  
  1983.      Suspend Cursor Increment
  1984.  
  1985.      It is useful to be able to move one pixel at a time within a macro without
  1986.      actually changing the cursor increment value so that the macro can be
  1987.      replayed for different sized objects. This can be accomplished with the
  1988.      [S]uspend command to temporarily cause the cursor to move one dot at a
  1989.      time.
  1990.  
  1991.      Relative [+/-] Cursor Increment
  1992.  
  1993.      Similarly, you can use the [+] and [-] keys to increment and decrement the
  1994.      cursor increment value to make changes relative to the value in effect when
  1995.      the macro is started.
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.      Page 26                                                         PC-Draft II
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.      .MAC file structure
  2017.  
  2018.      Macro files are created as standard ASCII text files and may be edited with
  2019.      your ASCII text editor (even EDLIN!). .MAC files simply consist of each
  2020.      keystroke as entered during their creation. Control keys are represented by
  2021.      their keyboard scan value as an ASCII character preceded by a "^" charac-
  2022.      ter.
  2023.  
  2024.      The common PC-Draft keystrokes are as follows:
  2025.  
  2026.  
  2027.                    [F1] = ^;       [^] = ^H    [Ctrl + PgUp] = ^(value 132)     
  2028.                    [F2] = ^<       [v] = ^P    [Ctrl + PgDn] = ^v
  2029.                    [F3] = ^=       [<] = ^K    [Ctrl + <]    = ^s
  2030.                    [F4] = ^>       [>] = ^M    [Ctrl + >]    = ^t 
  2031.                    [F5] = ^?       [Home] = ^G
  2032.                    [F6] = ^@       [End]  = ^O [Enter]       = (value 13)
  2033.                    [F7] = ^A       [PgUp] = ^I [Esc]         = ^[
  2034.                    [F8] = ^B       [PgDn] = ^Q
  2035.                    [F9] = ^C
  2036.                    [F10] = ^D
  2037.  
  2038.  
  2039.      For example the shadow box macro: SHADOW.MAC is:
  2040.  
  2041.      B^Q^M^M^M^HS^P^P^P^P^MR^M^M^M^M^M^MS^PR^K^K^K^KS^H^ H^HS^H%
  2042.  
  2043.      Note that the macro file must end with the "%" terminator character.
  2044.  
  2045.  
  2046.      Importing text files:
  2047.  
  2048.      You can import text from a standard ASCII text file into the graphic
  2049.      screen. To do so, you must do three things: 
  2050.  
  2051.      1.   Add the character "t" as the first character in the file. This will
  2052.           tell PC-Draft II to enter text mode. 
  2053.  
  2054.      2.   Add the character "%" to the end of the file. This tells the macro
  2055.           function that the end of the macro has been reached.
  2056.  
  2057.      3.   Rename the file so that its extension is .MAC.
  2058.  
  2059.  
  2060.      Actually what you do is convert the text file into a PC-Draft II macro
  2061.      file. Now, to import the text:
  2062.  
  2063.      1.   Set the window size as appropriate for the text in the position you
  2064.           want within the graphic screen area with the [Alt + W] command.
  2065.  
  2066.  
  2067.  
  2068.  
  2069.      Macros                                                              Page 27
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.      2.   Position the cursor to the upper left corner of the window.
  2083.  
  2084.      3.   Load the macro by pressing: [F3][M][R] and entering the name of your
  2085.           text file.
  2086.  
  2087.      That's it. The text will be imported into the window area, wrapping around
  2088.      as necessary. If your text file is too long for the window size, you will
  2089.      have to put up with a lot of beeping as the macro tries to write characters
  2090.      at the end of the window.
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.      Page 28                                                         PC-Draft II
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.                                         Graphs
  2149.  
  2150.      PC-Draft's graphing function allows you to automatically create line, bar
  2151.      and pie charts. While this function is not as sophisticated as you might
  2152.      find in business graphics programs dedicated to that purpose, PC-Draft
  2153.      provides the means to enhance your graphs with labels, pattern fills, etc.
  2154.      in a much more flexible and free form way. You are the artist. PC-Draft is
  2155.      the tool.
  2156.  
  2157.      Creating graphs involves three steps:
  2158.  
  2159.      1.   Enter a set of value pairs (for X and Y graph axis).
  2160.      2.   Select the type of graph: Bar, Line, Points, or Pie.
  2161.      3.   Draw the graph (similar to the [B]ox command or the [C]ircle command
  2162.           for pie charts).
  2163.  
  2164.      Editing Points
  2165.  
  2166.      Press [F7] to pop-up the graph menu. Then press [E] to edit points. Enter
  2167.      values for each element in your graph. Normally the values on the X axis
  2168.      would be equal for equally sized Bars in a Bar graph for example. So, enter
  2169.      a 1 for each element down the X column. The first X axis entry of zero
  2170.      signals the end. If your graph has 8 elements, the ninth entry in the X
  2171.      column should be zero. If your Y values are decimal, enter them without the
  2172.      decimal point. For instance, enter 12.34 as 1234, and then 56.00 as 5600.
  2173.  
  2174.      Saving Points
  2175.  
  2176.      You can save your graph data to a .PTS file by pressing: [F7][S] and sp-
  2177.      ecifying a filename.
  2178.  
  2179.      loading Points
  2180.  
  2181.      Similarly, you load previously saved graph data with: [F7][L].
  2182.  
  2183.      Graph Type
  2184.  
  2185.      Specify the type of graph you want to draw by pressing [F7][T]. Then select
  2186.      either [B]ar, [L]ine, [D]ots, or [P]ie.
  2187.  
  2188.      Drawing graphs
  2189.  
  2190.      Once you have entered or loaded point values and selected a graph type, you
  2191.      can draw your graph anywhere in your drawing. For graph types other than
  2192.      Pie, position the cursor at one corner of a rectangular area, press [G],
  2193.      then move the cursor to the opposite corner and press [Enter].
  2194.  
  2195.      PC-Draft automatically scales the graph to fill the rectangular area
  2196.      specified. To overlay two or more sets of graph point values:
  2197.  
  2198.  
  2199.  
  2200.  
  2201.      Graphs                                                              Page 29
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.      1.   Draw a bar graph for the first set of points.
  2215.      2.   Turn off the Graph s[C]ale by pressing: [F7][C] so that the scale
  2216.           indicator shows: [OFF]. This will cause PC-Draft to use the same scale
  2217.           established from the previous graph.
  2218.      3.   Load the second set of point values.
  2219.      4.   Select the drawing mode: [F5][O]verlay (see below).
  2220.      5.   Draw the graph for the second set of points in the same location as
  2221.           the first.
  2222.  
  2223.      For the Pie graph type, move the cursor to the center of a circular area,
  2224.      press [G], and move the cursor outward to size the pie chart.
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.      Page 30                                                         PC-Draft II
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.                                      Drawing Mode
  2281.  
  2282.      The drawing mode determines what happens pixel by pixel when you draw over
  2283.      existing (set) pixels. When first started PC-Draft is in [R]eplace drawing
  2284.      mode.
  2285.  
  2286.      To change drawing mode, press [F5] to pop-up the drawing mode menu. Then
  2287.      press the letter in brackets for the mode you want, or press [^] or [v] to
  2288.      move the pointer and press [Enter] to make your selection.
  2289.  
  2290.      The effect of each drawing mode is as follows:
  2291.  
  2292.      [R]eplace:     The resulting pixel equals the drawing pixel.
  2293.  
  2294.      [O]verlay:     The resulting pixel is changed only if the drawing pixel is
  2295.                     "on".
  2296.  
  2297.      [T]ransparent: The resulting Pixel is made the opposite of the drawing
  2298.                     pixel. This is "XOR" mode.
  2299.  
  2300.      You might want to experiment with the drawing mode to see how it affects
  2301.      other operations such as spra[Y] can, [J]ust paint and [P]aint.
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.      Drawing Mode                                                        Page 31
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.                                        Printing
  2347.  
  2348.      PC-Draft will print your drawing using a variety of IBM or Epson compat-
  2349.      ible dot matrix printers or a laser printers compatible with the Hewlett
  2350.      Packard LaserJet+ (Note that this includes HP's DeskJet printer). 
  2351.  
  2352.      You can print a portion of the current screen window, the whole screen or
  2353.      the entire drawing. The printing function is evoked by pressing the [F8]
  2354.      key. If you press [F8] with a pop-up menu "up", you will print the screen
  2355.      with the menu pop-up included. Otherwise, the menu bar and control panel
  2356.      will not be printed.
  2357.  
  2358.      When printing, you will be asked for a filename (after specifying printer
  2359.      type and resolution mode). If you wish to dump the printer control bytes to
  2360.      a file for later printing, enter the filename to use. You may include the
  2361.      optional drive and path designations. If you wish to immediately print,
  2362.      simply press the Enter key. You can later print the file created by this
  2363.      method from outside of PC-Draft by the DOS command:
  2364.  
  2365.           COPY /B PRTFILE PRN
  2366.  
  2367.      Note:  that you must use the /B option since the file is a binary file. For
  2368.      the same reason, do not use the DOS print command, since the file is a
  2369.      binary file containing byte values which may be interpreted by the Print
  2370.      program as tabs.
  2371.  
  2372.      This feature was added to enable you to incorporate PC-Draft images into
  2373.      word processors that allow sending files to the printer in the middle of
  2374.      the word processor document. It is also handy if you want to print several
  2375.      items at a time but do not want to wait on the slow speed of the printer.
  2376.      You can save all the images to files with a common extension (such as
  2377.      .PRT). Then later print them all with:
  2378.  
  2379.           COPY /B *.PRT PRN
  2380.  
  2381.  
  2382.      Printer resolution modes
  2383.  
  2384.      It is not always possible to get dot matrix printer output to exactly
  2385.      represent the same aspect ratio as the graphics screen. 
  2386.  
  2387.      The monitor's (in high resolution 640 by 200 dot mode) aspect ratio is 2:1. 
  2388.      It takes two horizontal dots to equal one vertical dot. A box that is 100
  2389.      pixels wide by 50 pixels high will appear square.
  2390.  
  2391.      Printers compatible with either the IBM Graphic dot matrix or the Epson dot
  2392.      matrix printers always print with a vertical resolution of 72 dots per inch
  2393.      (this is the spacing between the pins in the print head). So the perfect
  2394.      horizontal resolution to match the screen appearance is 144 dots per inch
  2395.  
  2396.  
  2397.  
  2398.  
  2399.      Page 32                                                         PC-Draft II
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.      horizontally (144:72 ratio). The Epson FX+ series printers have this
  2413.      resolution, the IBM dot matrix printer (and many compatibles) does not.
  2414.  
  2415.      The 60 dots per inch modes print two vertical dots for each one in your
  2416.      original drawing in an attempt to get as close as possible to the 2:1
  2417.      aspect ratio. 60:36 is close but not perfect. This mode fits one screen
  2418.      window on eight inch wide paper.
  2419.  
  2420.      The 240 dots per inch modes print one vertical dot for every two in your
  2421.      original drawing. The pixels in alternate lines are combined. This 240:144
  2422.      aspect ratio is better than the normal 240:72, but still does not produce
  2423.      perfectly round circles.
  2424.  
  2425.      Each printer has different graphics resolution modes. The current version
  2426.      of PC-Draft supports up to four modes for each printer supported. 
  2427.  
  2428.  
  2429.      IBM dot matrix
  2430.  
  2431.      (Same as Okidata Microline 290 series)
  2432.  
  2433.           Mode [1]  prints at 60 dots per inch. (480 dots/8 inch line.)
  2434.           Mode [2]  prints at 120 dots per inch. (960 dots/8 inch line.)
  2435.           Mode [3]  prints at 120 dots per inch. (draft mode is faster, prints
  2436.                     every other dot.)
  2437.           Mode [4]  prints at 240 dots per inch (1920 dots/8 inch line.) this
  2438.                     fits two screens wide in 5-5/16 inches.)
  2439.  
  2440.      There is no mode for this printer that will print round circles.
  2441.  
  2442.      Epson dot matrix
  2443.  
  2444.           Mode [1]  prints at 72 dots per inch. (4576 dots/8 inch line.)
  2445.           Mode [2]  prints at 120 dots per inch. (960 dots/8 inch line.)
  2446.           Mode [3]  prints at 144 dots per inch. (1152 dots/8 inch line.) This
  2447.                     is best for round circles. However, you lose 128 dots from
  2448.                     the far right of your drawing unless you have a wide car-
  2449.                     riage printer.
  2450.           Mode [4]  prints at 240 dots per inch (1920 dots/8 inch line.) this
  2451.                     fits two screens wide in 5-5/16 inches.)
  2452.  
  2453.      HP LaserJet+
  2454.  
  2455.           (Also for HP DeskJet)
  2456.           Mode [1]  prints at 75 dots per inch. (600 dots/8 inch line.)
  2457.           Mode [2]  prints at 100 dots per inch. (800 dots/8 inch line.)
  2458.           Mode [3]  prints at 150 dots per inch. (1200 dots/8 inch line.) This
  2459.                     fills an 8-1/2 by 11 inch size printout.
  2460.           Mode [4]  prints at 300 dots per inch (2400 dots/8 inch line.) this
  2461.                     fits two screens wide in 4.26 inches.)
  2462.  
  2463.  
  2464.  
  2465.      Printing                                                            Page 33
  2466.  
  2467.  
  2468.  
  2469.  
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.      All modes for the LaserJet print double the number of pixels vertically to
  2480.      more closely match the proportions of the screen, so that squares and
  2481.      circles are printed square and round. 
  2482.  
  2483.      If your drawing is the equivalent of two screens wide, you should use the
  2484.      high density modes to fit on 8 1/2 inch wide paper.
  2485.  
  2486.      If you have a printer that you would like PC-Draft to support, please send
  2487.      a copy of the dot graphics section of your printer manual and we will
  2488.      supply you with a printer driver for your printer and add it to our collec-
  2489.      tion.
  2490.  
  2491.      IDS Microprism
  2492.  
  2493.      This has only one graphics resolution mode, so we made an attempt to allow
  2494.      two adjustments:
  2495.  
  2496.           Mode [1]  prints at normal mode.
  2497.           Mode [2]  prints at one half vertical.
  2498.  
  2499.      C.Itoh 8510-1550
  2500.  
  2501.      (same as NEC 8023A/B and SONY SMI-720)
  2502.           Mode [1]  prints at 80 dots per inch. (640 dots/8 inch line.)
  2503.           Mode [2]  prints at 96 dots per inch. (768 dots/8 inch line.)
  2504.           Mode [3]  prints at 136 dots per inch. (1088 dots/8 inch line.) 
  2505.           Mode [4]  prints at 160 dots per inch (1280 dots/8 inch line.)
  2506.  
  2507.      GEM .IMG
  2508.  
  2509.      Of great importance to users of DeskTop publishing programs like Ventura
  2510.      Publisher, is the ability to export portions of the screen, full screens,
  2511.      and/or full drawings in GEM .IMG file format. This allows inclusion of
  2512.      graphics created (or captured) with PC-Draft directly into DTP documents.
  2513.      (Also works with WordPerfect v 5.0!) Simply print (box, screen or drawing)
  2514.      using the GEM IMG choice on the printer menu as your printer choice -- you
  2515.      must give a filename (the filename should have an ".IMG" extension).
  2516.  
  2517.      This manual was created using WordPerfect 5.0. The illustrations of PC-
  2518.      Draft screens were made using this method. 
  2519.  
  2520.  
  2521.      Print current screen window
  2522.  
  2523.      Press [F8] to pop-up the print menu and select [S] for [S]creen. Then
  2524.      select a printer type. Then select a printer resolution mode: [1] - [4]
  2525.      from low to high density. Then (if you want to save the printer codes in a
  2526.      file for later printing), enter the path and filename of the file to save
  2527.  
  2528.  
  2529.  
  2530.  
  2531.      Page 34                                                         PC-Draft II
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.      the printer data. Or, (if you wish to print immediately), press the [Enter]
  2545.      key without any filename.
  2546.  
  2547.      These steps are typical for the other two printing options: [A]ll and
  2548.      [B]ox.
  2549.  
  2550.      Print full drawing
  2551.  
  2552.      Press [F8] to pop-up the print menu and select [A] for [A]ll. Then select a
  2553.      printer type and resolution mode.
  2554.  
  2555.      Print partial screen
  2556.  
  2557.      First position the cursor to one corner of a rectangular area of the screen
  2558.      to print. Press [F8] to pop-up the print menu and select [B] for [B]ox.
  2559.      After selecting the printer type, you then must position the cursor to the
  2560.      opposite corner of the area to print as if you were drawing a box. Then
  2561.      select a printer resolution mode: [1] -[4] from low to high density and
  2562.      press [Enter] (mouse right button) to start printing.
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.      Printing                                                            Page 35
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.                                     Screen Capture
  2611.  
  2612.      A program called CAPTURE.COM on the distribution diskette, allows you to
  2613.      capture screen images from other programs, save them in separate files, and
  2614.      later load them into PC-Draft. This is useful when writing software docu-
  2615.      mentation. You can add boarders around the screen and print them for later
  2616.      paste up.
  2617.  
  2618.      CAPTURE uses a the hot-key combination: [Alt]+[.]
  2619.  
  2620.      Capture is a Terminate and Stay Resident (TSR) program. When you run it
  2621.      from the DOS command line, it will announce its presence and quietly sink
  2622.      into the background and wait to be called into action (when its "hot key"
  2623.      is pressed). 
  2624.  
  2625.      When you run Capture, you must provide it with the location and starting
  2626.      file name to use to store the screen images it captures. For example, if
  2627.      you have installed PC-Draft on your hard disk in a sub-directory called
  2628.      DRAFT, you might start Capture with this command:
  2629.  
  2630.      CAPTURE C:\DRAFT\PIC\SCREENA.PIC
  2631.  
  2632.      Now Capture will store its screens in the PIC sub-directory. The first
  2633.      screen it saves will be called SCREENA.PIC, the second will be called
  2634.      SCREENB.PIC. Each subsequent .PIC file will increment the character in the
  2635.      filename just before the extension. These files are graphic pic files com-
  2636.      patible with PC-Draft regardless of whether the original screen was in text
  2637.      mode or graphics mode.
  2638.  
  2639.      To activate Capture and save the current screen to a .PIC file, you press
  2640.      the [Alt + left Shift] ([Alt + .] for Capture2) keys together. You will
  2641.      hear a beep when Capture is called. Three beeps means it successfully wrote
  2642.      a unique file to the specified directory. Only one beep means it was unable
  2643.      to create the file (could not find the directory?). Only two beeps means it
  2644.      created the file, but could not write the full 16k screen buffer, (disk
  2645.      full?).
  2646.  
  2647.      Capture will detect the current video mode and adjust. It converts text
  2648.      mode screens into bit mapped graphics suitable for PC-Draft II.
  2649.  
  2650.      Like any other TSR, Capture may have compatibility problems with other
  2651.      software, especially other TSR's. If you have trouble, try installing
  2652.      Capture by itself and adding your other TSR utilities one at a time after
  2653.      you get Capture to work.
  2654.  
  2655.      We strongly recommend the shareware utilities MARK and RELEASE. They will
  2656.      allow you to de-install Capture (and other TSR's). Look for them on your
  2657.      bulletin board.
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.      Page 36                                                         PC-Draft II
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676.                               The PIX graphics language
  2677.  
  2678.      The PIX.COM program is actually a special version of PC-Draft which reads
  2679.      its input from a script file of graphic commands instead of responding to
  2680.      the keyboard. By creating such a file with your favorite text editor, you
  2681.      are in fact writing a graphics program that will be played out as an
  2682.      animated sequence of steps as PIX reads the file. PIX allows you to:
  2683.  
  2684.                o    Create a script of graphic commands to be played out in
  2685.                     animation for presentations.
  2686.  
  2687.                o    You can load and display screens and whole drawings created
  2688.                     by PC-Draft.
  2689.  
  2690.                o    You can use (and create) PC-Draft objects and macros.
  2691.  
  2692.                o    You can create new macros with PIX's procedures and looping
  2693.                     for use in PC-Draft.
  2694.  
  2695.                o    PIX has repeat looping and Procedures (subroutines).
  2696.  
  2697.                o    In place of literal values used for the drawing commands,
  2698.                     you can substitute variables.
  2699.  
  2700.                o    You can run PIX in trace mode for debugging.
  2701.  
  2702.      We have provided some sample PIX programs on your distribution disk. These
  2703.      files all have the filename extension: .SCR. To get a feel for what PIX is
  2704.      and its versatility run the demo program as follows. To start a PIX demon-
  2705.      stration, with the file PIX.COM on the current drive and DEMO.SCR in the
  2706.      SCR directory, enter the command:
  2707.  
  2708.           PIX SCR\DEMO
  2709.  
  2710.      at the DOS command prompt, and sit back and watch.
  2711.  
  2712.      PIX is a special purpose language with a few simple rules:
  2713.  
  2714.      o    The PIX source file must be created as a standard ASCII text file by
  2715.           your own text editor. EDLIN (shudder) will work if you don't have any
  2716.           other.
  2717.  
  2718.      o    Each PIX program statement must be on a line by itself.
  2719.  
  2720.      o    Numbers are always enclosed by parentheses and separated by commas,
  2721.           such as: (12,34,56,78).
  2722.  
  2723.      o    Numbers are integers (usually used to represent X and Y locations,
  2724.           Pattern, Color, or Repeat loop index.)
  2725.  
  2726.  
  2727.  
  2728.  
  2729.      PIX Language                                                        Page 37
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.      o    Key words such as LINE and CIRCLE can be abbreviated to their first
  2743.           three characters (LIN and CIR).
  2744.  
  2745.      o    Upper and lower case is not significant. The commands; LINE, line,
  2746.           Line, and LiN are all equivalent.
  2747.  
  2748.      o    White space (space character) is generally ignored, so lines can be
  2749.           indented for readability. The exception is around numbers within
  2750.           parentheses: ( 12, 34, 56 ) is not legal.
  2751.  
  2752.      o    Any text on a line following a command is ignored, perfect for com-
  2753.           ments.
  2754.  
  2755.      o    Any line beginning with a semi-colon is considered a comment.
  2756.  
  2757.      o    A number or variable on a line by itself is considered as a change to
  2758.           the cursor increment value, just as if you had typed in a number while
  2759.           using PC-Draft.
  2760.  
  2761.      o    Values used to refer to cursor positions are always in relation to the
  2762.           current screen window, not the entire drawing.
  2763.  
  2764.      Starting PIX
  2765.  
  2766.      To run PIX simply type PIX at the DOS command prompt followed by the file
  2767.      name of your script (program). If you do not specify a script file, PIX
  2768.      will search the current directory for a script file named AUTO.SCR. If this
  2769.      file is not found, PIX will ask you for a script filename. Once a valid
  2770.      script file is found, PIX immediately begins its performance. When the
  2771.      script has finished, press the [Enter] key to return to DOS.
  2772.  
  2773.      Trace mode
  2774.  
  2775.      To run PIX in trace (single step) mode, evoke PIX with a [T] command line
  2776.      argument. For example, to trace through the demo script type:
  2777.  
  2778.                          PIX T DEMO
  2779.  
  2780.      In this mode PIX will display each command line of your script file and
  2781.      wait for you to press [Enter] before executing it.
  2782.  
  2783.      Exit PIX
  2784.  
  2785.      To exit PIX before the script is completed, press any key to interrupt. PIX
  2786.      will display a pop-up window asking if you wish to exit. Enter a [Y] to
  2787.      exit or any other character to continue.
  2788.  
  2789.  
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.      Page 38                                                         PC-Draft II
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808.      PIX Commands
  2809.  
  2810.      Each line in your PIX program represents a PIX command. For instance the
  2811.      following command line draws a box 20 pixels wide by 40 pixels high start-
  2812.      ing at X location 120 and Y location 10:
  2813.  
  2814.                                    Box (120,10,140,50)
  2815.  
  2816.  
  2817.  
  2818.      You could draw the same box with a series of cursor movement commands which
  2819.      emulate the way you would draw it with PC-Draft:
  2820.  
  2821.                                    10             Set cursor increment = 10
  2822.                                    Gotoxy (120,10)     goto starting position
  2823.                                    Box            Start the box
  2824.                                    down           Go down 10 pixels
  2825.                                    down           10 more = 20
  2826.                                    dright              10 down and 10 right
  2827.                                    dright              Now   we're   at  X=140,
  2828.                                                        Y=50
  2829.                                    end            This ends the box command.
  2830.                                    Quit           Exit PIX
  2831.  
  2832.  
  2833.  
  2834.  
  2835.      Note that the above is a complete PIX program. The text following each
  2836.      command is treated as a comment.
  2837.  
  2838.      Variables
  2839.  
  2840.      Pix allows you to substitute an integer variable in place of numbers used
  2841.      in the various drawing commands. A variable is identified by one of the 26
  2842.      alpha characters [A..Z]. For instance the same box described above can be
  2843.      drawn using variable substitution:
  2844.  
  2845.                                    Let A = (120)
  2846.                                    Let B = (10)
  2847.                                    Let C = (50)
  2848.                                    Box (a,b,140,c)
  2849.  
  2850.  
  2851.  
  2852.  
  2853.  
  2854.      Note that variables can be mixed with numeric values and that upper and
  2855.      lower case character identifiers are treated as identical.
  2856.  
  2857.      Assign (LET)
  2858.  
  2859.  
  2860.  
  2861.      PIX Language                                                        Page 39
  2862.  
  2863.  
  2864.  
  2865.  
  2866.  
  2867.  
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.      You assign values to variables with the Let statement as shown:
  2876.  
  2877.           Let A = (#)
  2878.  
  2879.      (The equal sign is optional for readability, you could say:
  2880.  
  2881.           Let A (#)
  2882.  
  2883.      with the same result.
  2884.  
  2885.      Increment
  2886.  
  2887.           The following statements increment (by one) the variable B:
  2888.  
  2889.                                    Increment B
  2890.                                    Inc B
  2891.  
  2892.  
  2893.  
  2894.  
  2895.      Decrement
  2896.  
  2897.           The following statements decrement (by one) the variable C:
  2898.  
  2899.                                    Decrement C
  2900.                                    Dec C
  2901.  
  2902.  
  2903.  
  2904.  
  2905.      Cursor Movement Commands
  2906.  
  2907.      These cause the graphics cursor to move in the specified direction relative
  2908.      to the current position. How far the cursor moves is determined by the
  2909.      current cursor increment value.
  2910.  
  2911.      Right, Left, Up, Down, are the vertical and horizontal moves.
  2912.       
  2913.      URight, ULeft, DRight, DLeft, are the diagonal moves. For instance to move
  2914.      the cursor Down and to the right use the command: DRight.
  2915.  
  2916.      Gotoxy
  2917.  
  2918.           Use Gotoxy (x,y) for absolute cursor positioning. This moves the
  2919.           graphics cursor to X location 140 and Y location 86:
  2920.  
  2921.                                    Gotoxy (140,86)
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.      Page 40                                                         PC-Draft II
  2928.  
  2929.  
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.      Screen moves
  2943.  
  2944.      These commands allow you to move around the drawing (like [Ctrl + >] in PC-
  2945.      Draft:
  2946.  
  2947.      >up  corresponds to: [Ctrl + PgUp]
  2948.      >down     corresponds to: [Ctrl + PgDn]
  2949.      >left     corresponds to: [Ctrl + <]
  2950.      >right    corresponds to: [Ctrl + >]
  2951.  
  2952.  
  2953.      Or, you can move directly to a screen window number:
  2954.  
  2955.                          Move (#)  # must be between [1..28]
  2956.  
  2957.  
  2958.      Drawing Commands
  2959.  
  2960.      The following drawing commands perform functions as you might expect
  2961.      similar to PC-Draft. You can use them with the corner positions specified
  2962.      as parameters such as:
  2963.  
  2964.                                    Box (a,b,140,c)
  2965.  
  2966.  
  2967.  
  2968.  
  2969.      Or, you can use them as you would with PC-Draft with relative cursor
  2970.      movements to specify the opposite corner. Such as:
  2971.  
  2972.                                    Box
  2973.                                    DRight
  2974.                                    DRight
  2975.                                    DRight
  2976.                                    End
  2977.  
  2978.  
  2979.  
  2980.  
  2981.      These commands are:
  2982.        
  2983.           Box (x1,y1,x2,y2)
  2984.           Line (x1,y1,x2,y2)
  2985.           Circle (x1,y1,x2,y2)
  2986.           Rectangle (x1,y1,x2,y2)
  2987.           Object (x1,y1,x2,y2)
  2988.           Graph  (x1,y1,x2,y2)
  2989.           Window (x1,y1,x2,y2)
  2990.  
  2991.  
  2992.  
  2993.      PIX Language                                                        Page 41
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007.      The Curve, Erase, Multi-line and Free-draw commands work a little
  3008.      differently. You specify a starting cursor position, then the command key-
  3009.      word, then a series of points, with the GOTOXY command. Then end the
  3010.      sequence of points with the END command. For example to draw a curve:
  3011.  
  3012.                                    gotoxy (50,20)
  3013.                                    Curve
  3014.                                      gotoxy (150,20)
  3015.                                      gotoxy (250,120)
  3016.                                      gotoxy (350,20)
  3017.                                      gotoxy (450,120)
  3018.                                      gotoxy (550,20)
  3019.                                      gotoxy (550,120)
  3020.                                      gotoxy (600,80)
  3021.                                    end
  3022.  
  3023.  
  3024.  
  3025.  
  3026.      or to draw multi-lines:
  3027.  
  3028.                                    gotoxy (10,10)
  3029.                                    Multi-line
  3030.                                      gotoxy (10,20)
  3031.                                      gotoxy (25,100)
  3032.                                      gotoxy (150,20)
  3033.                                      gotoxy (250,100)
  3034.                                      gotoxy (300,180)
  3035.                                    end
  3036.  
  3037.  
  3038.  
  3039.  
  3040.      You can Erase in a free form manner described above or in a straight line,
  3041.      for example:
  3042.  
  3043.                                    Erase (3,100,300,10)
  3044.  
  3045.  
  3046.  
  3047.  
  3048.      Arc
  3049.  
  3050.      The Arc command requires two sets of points. The first set establishes the
  3051.      full circle from which the desired arc will be taken. The second set of
  3052.      points describes the rectangular area which sets the boundaries for the
  3053.      arc. For example this draws a quarter circle arc:
  3054.  
  3055.  
  3056.  
  3057.  
  3058.  
  3059.      Page 42                                                         PC-Draft II
  3060.  
  3061.  
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069.  
  3070.  
  3071.  
  3072.                                    Arc (300,100,300,10)(300,100,600,9)
  3073.  
  3074.  
  3075.  
  3076.      These next commands are single key commands which perform similarly to
  3077.      their counterparts in PC-Draft. You would first position the cursor, then
  3078.      call the command. For instance, with the Paint command, paint a circle:
  3079.  
  3080.                                    Circle (135,28,135,95)   Draw a circle
  3081.                                    Gotoxy (135,28)     Return to its center
  3082.                                    Paint               Fill  with  current pat-
  3083.                                tern
  3084.  
  3085.  
  3086.  
  3087.      They are:
  3088.  
  3089.                Paint
  3090.                Drop      (Object)
  3091.                Reverse   (Object)
  3092.                Expand    (Object)  ( double size vertically   )
  3093.                Contract  (Object)  ( halve size vertically    )
  3094.                Enlarge   (Object)  ( double size horizontally )
  3095.                Small     (Object)  ( halve size horizontally  )
  3096.                Home      (Move cursor to center screen)
  3097.                Kursor    (Toggle cursor between small x and large x)
  3098.                Undo      (Undo previous drawing command)
  3099.                Tog       (Toggle chart scale off/on)
  3100.  
  3101.      The following commands write strings of characters on the screen. They must
  3102.      be followed by the character string to write, and therefor cannot have a
  3103.      comment on the same line.
  3104.  
  3105.                Write <string> (Write "string" using the currently loaded font)
  3106.                Text  <string> (Write "string" using the IBM regular font)
  3107.  
  3108.      For example:
  3109.  
  3110.                                    Gotoxy (135,28)     Position the cursor 
  3111.                                    Write  This is my message
  3112.  
  3113.  
  3114.  
  3115.  
  3116.      Non Drawing Commands
  3117.  
  3118.                Pattern (#)    (Select pattern number [0..9] )
  3119.                Mode <MODE>    (Select Drawing Mode:
  3120.                               "Replace,Overlay,Transparent")
  3121.  
  3122.  
  3123.  
  3124.  
  3125.      PIX Language                                                        Page 43
  3126.  
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138.                Type <MODE>    (Select Graph type: "Bar,Line,Dots,Pie")
  3139.                Clear          (Erase screen)
  3140.                Quit           (Exit PIX)
  3141.                Color (#)      (Select screen color. Colors are as follows:
  3142.  
  3143.                     0: Black       8: Dark Gray
  3144.                     1: Blue        9: Light Blue
  3145.                     2: Green       10: Light Green
  3146.                     3: Cyan        11: Light Cyan
  3147.                     4: Red         12: Light Red
  3148.                     5: Magenta     13: Light Magenta
  3149.                     6: Brown       14: Yellow
  3150.                     7: Light Grey  15: White  )
  3151.  
  3152.  
  3153.      File Commands
  3154.  
  3155.      Load or Save followed by: ("Screen A:PIC\SAMPLE.PIC")
  3156.           Load Screen    <FilePath>
  3157.           Save Screen    <FilePath>
  3158.           Load Drawing   <FilePath>
  3159.           Save Drawing   <FilePath>
  3160.           Load Pattern   <FilePath>
  3161.           Load Font      <FilePath>
  3162.           Load Object    <FilePath>
  3163.           Save Object    <FilePath>
  3164.           Load Macro     <FilePath>
  3165.           Save Macro     <FilePath>
  3166.           Load GraphPnts <FilePath>
  3167.  
  3168.      Program Control Statements
  3169.  
  3170.      Procedure <name>
  3171.                      .
  3172.                      .        ( Pix commands )
  3173.                      .
  3174.                     Endp      ( end proc. )
  3175.  
  3176.      Procedures must be declared before they are called (at the beginning of
  3177.      your PIX script). You are limited to a total of 50 named procedures. The
  3178.      number of command lines within each procedure is limited by memory.
  3179.      Procedures may contain any PIX commands including Repeat statements. You
  3180.      must end the procedure declaration with the Endp statement.
  3181.  
  3182.                     Repeat (#)     ( loop # times )
  3183.                      .
  3184.                      .        ( Pix commands )
  3185.                      .
  3186.                     Endr      ( end repeat )
  3187.  
  3188.  
  3189.  
  3190.  
  3191.      Page 44                                                         PC-Draft II
  3192.  
  3193.  
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200.  
  3201.  
  3202.  
  3203.  
  3204.      The Repeat statement causes a series of commands to repeat a given number
  3205.      of times. There is a limit of 50 command lines within a repeat loop. You
  3206.      must end the repeat loop with the Endr statement.
  3207.  
  3208.      Other Commands
  3209.  
  3210.      End( terminate a series of cursor moves )
  3211.                     Wait (#)       ( # = 1/4 second pause )
  3212.                     Cursor              ( toggle visible cursor off/on )
  3213.                     %              ( end Record Macro     )
  3214.                     ;              ( comment )
  3215.  
  3216.      To see how the various PIX commands can be used look at the example .SCR
  3217.      files provided on the distribution disk.
  3218.  
  3219.  
  3220.      New PIX commands
  3221.  
  3222.      The PIX program has been upgraded. It now supports several new commands:
  3223.  
  3224.      Pause
  3225.  
  3226.      This command causes program execution to stop, and wait for a keystroke
  3227.      before continuing.
  3228.  
  3229.      Getkey
  3230.  
  3231.      The Getkey command allows for more interactive PIX programs. With Getkey,
  3232.      you can input a keystroke into a program variable (A to Z). You can then
  3233.      use the Case command described below to conditionally branch based on the
  3234.      key pressed. For example the command:
  3235.  
  3236.                                         Getkey A
  3237.  
  3238.  
  3239.      causes the PIX program to pause, wait for a keystroke, and when the user
  3240.      presses a key, places the key value in the variable: A.
  3241.  
  3242.      Case
  3243.  
  3244.      The Case command allows conditional branching within a PIX program. The
  3245.      case statement consists of a selector based on a program variable [A to Z]
  3246.      and a list of statements preceded by a case label. The expression deter-
  3247.      mines which statement in the list to execute. For example:
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255.  
  3256.  
  3257.      PIX Language                                                        Page 45
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.                                         Getkey A
  3271.                                         Case A
  3272.                                              1 box (10,5,150,80)
  3273.                                              2 circle (10,5,150,80)
  3274.                                              3 rectangle (10,5,150,80)
  3275.                                         Endc
  3276.  
  3277.  
  3278.  
  3279.      PIX waits for the user to press a key, then assigns the value to the
  3280.      variable A, then executes one of the statements in the list depending on
  3281.      the value of A (1, 2, or 3).
  3282.  
  3283.      Note that the Case statement is ended by the key word: Endc.
  3284.  
  3285.      Jmp
  3286.  
  3287.      This allows an unconditional branch in a PIX program. The jump command must
  3288.      specify a target label. For example: 
  3289.  
  3290.                                              .
  3291.                                         Jmp LABELA
  3292.                                              .
  3293.                                              .
  3294.                                              .
  3295.                                         LABELA
  3296.                                              .
  3297.                                              .
  3298.  
  3299.  
  3300.      This will cause a jump to the label: LABELA skipping the statements between
  3301.      the Jmp and the label. Labels can be anything other than PIX key words.
  3302.      Jumps can only be forward. Pix cannot go in reverse, it reads the script
  3303.      file one line at time.
  3304.  
  3305.      The Jmp statement is most useful within a Case list. For example:
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.      Page 46                                                         PC-Draft II
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.                                         Getkey A
  3337.                                         Case A
  3338.                                              1 jmp labela
  3339.                                              2 jmp labelb
  3340.                                              3 jmp labelc
  3341.                                         Endc
  3342.                                         labela
  3343.                                         box (10,5,120.80)
  3344.                                         jmp  the_end
  3345.                                         labelb
  3346.                                         circle (10,5,120.80)
  3347.                                         jmp  the_end
  3348.                                         labelc
  3349.                                         rectangle (10,5,120.80)
  3350.                                         the_end
  3351.  
  3352.  
  3353.      Popup
  3354.  
  3355.      This allows you to open a popup window. PIX now supports up to ten such
  3356.      windows open at one time. Each window is referred to by its number (between
  3357.      1 and to). The proper syntax for Popup is: Popup (window number) (coo-
  3358.      rdinates). The window coordinates specify the upper left and lower right
  3359.      corners of the window in text coordinates (based on 25 lines of 80 charac-
  3360.      ters).
  3361.  
  3362.  
  3363.      Popdown
  3364.  
  3365.      This removes (pops down) a popup window. Its syntax is: Popdown (window
  3366.      number).
  3367.  
  3368.  
  3369.      Pgotoxy
  3370.  
  3371.      This positions the cursor in text coordinates relative to the specified
  3372.      popup window. The upper left corner of the window (in the box outline is
  3373.      coordinate: 0,0).
  3374.  
  3375.      For example the following code opens a window and displays two lines of
  3376.      text, waits for a keystroke from the user then removes the window (resto-
  3377.      ring the graphic screen below the window).
  3378.  
  3379.                                         Popup (1) (20,12,60,15)
  3380.                                         Pgotoxy (5,1)
  3381.                                         Text This is line one
  3382.                                         Text This is line two
  3383.                                         Pause
  3384.                                         Popdown (1)
  3385.  
  3386.  
  3387.  
  3388.  
  3389.      PIX Language                                                        Page 47
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.      Tgotoxy
  3404.  
  3405.      This positions the cursor in text coordinates relative to the entire screen
  3406.      based on 25 lines of 80 characters. The command: Tgotoxy (10,10) accomp-
  3407.      lishes the same as the command: Gotoxy (80,80) since each character
  3408.      occupies an 8 by 8 pixel grid.
  3409.  
  3410.      Print
  3411.  
  3412.      This allows printing of the drawing created with PIX. Simply place the
  3413.      command PRINT in your PIX script file at the point you wish to print. PIX
  3414.      will pause at that point and present a menu of printer choices:
  3415.  
  3416.                                    Select Printer
  3417.  
  3418.                                    1 - IBM graphic
  3419.                                    2 - generic Epson
  3420.                                    3 - HP-LaserJet+
  3421.  
  3422.  
  3423.  
  3424.  
  3425.      When you select the printer type a second window appears with printer
  3426.      resolution selections:
  3427.  
  3428.                                    Select Printer mode
  3429.  
  3430.                                    1 - 120 dots/in.
  3431.                                    2 - 240 dots/in.
  3432.  
  3433.  
  3434.  
  3435.  
  3436.      press [1] for low resolution (120 dpi for dot matrix printers, 150 dpi for
  3437.      LaserJet), [2] for high resolution (240 dpi for dot matrix, 300 dpi for
  3438.      LaserJet),to abort printing, press any other key. After printing starts,
  3439.      you can abort by pressing [Esc] and then [Y] to the prompt: [ Abort
  3440.      printing [Y/N]? ].
  3441.  
  3442.      You can have PIX print to a file by adding the filename as a parameter. For
  3443.      example the command:
  3444.  
  3445.                               PRINT C:\TEMP\PRINT.DMP
  3446.  
  3447.      sends the printer control codes to the file PRINT.DMP in the TEMP sub-
  3448.      directory on the C: drive.
  3449.  
  3450.      The PIX script file: CASE.SCR illustrates the above new commands.
  3451.  
  3452.  
  3453.  
  3454.  
  3455.      Page 48                                                         PC-Draft II
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.      PC-Draft commands not supported
  3470.  
  3471.      If you thought something was missing, you're right. Some PC-Draft commands
  3472.      didn't seem to make much sense to include within the PIX language. These
  3473.      are:
  3474.  
  3475.           Grid           Snap           Print
  3476.           Xfer           Font           Zoom      Just Paint
  3477.           spraY can      Quick View
  3478.           Edit Font      Edit Pattern   Edit Graph points
  3479.           Save Font      Save Pattern   Save Graph points
  3480.  
  3481.  
  3482.  
  3483.  
  3484.  
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520.  
  3521.      PIX Language                                                        Page 49
  3522.  
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.                                Summary of PIX commands
  3535.  
  3536.  
  3537.           Cursor Movement:
  3538.  
  3539.                right     left up   down 
  3540.                uright    uleft     dright    dleft     gotoxy (x,y)
  3541.  
  3542.           Screen moves:
  3543.  
  3544.                >up  >down     >left     >right
  3545.                Move (#)  [1..28]
  3546.  
  3547.           Functions:
  3548.  
  3549.                Pattern (#)  [0..9] ( pattern number )
  3550.                Mode  {Replace|Overlay|Transparent}
  3551.                Type  {Bar|Line|Dots|Pie}
  3552.                Clear
  3553.                Color (#) 0: Black  8: Dark Gray
  3554.                          1: Blue        9: Light Blue
  3555.                          2: Green  10: Light Green
  3556.                          3: Cyan        11: Light Cyan
  3557.                          4: Red         12: Light Red
  3558.                          5: Magenta     13: Light Magenta
  3559.                          6: Brown  14: Yellow
  3560.                          7: Light Grey  15: White
  3561.  
  3562.           Drawing:
  3563.        
  3564.                Arc (x1,y1,x2,y2)(x1,y1,x2,y2)
  3565.                Box (x1,y1,x2,y2)
  3566.                Circle (x1,y1,x2,y2)
  3567.                Curve (x1,y1,x2,y2)
  3568.                Erase (x1,y1,x2,y2)
  3569.                Free-Draw {gotoxy(x,y)..gotoxy(x,y)..end}
  3570.                Line (x1,y1,x2,y2)
  3571.                Multi-line {gotoxy(x,y)..gotoxy(x,y)..end}
  3572.                Rectangle (x1,y1,x2,y2)
  3573.                Graph  (x1,y1,x2,y2)
  3574.                Window (x1,y1,x2,y2)
  3575.                Paint
  3576.                Home
  3577.                Kursor
  3578.                Undo
  3579.                Write <string>
  3580.                Text  <string>
  3581.                Tog (chart scale)
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.      Page 50                                                         PC-Draft II
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.  
  3598.  
  3599.  
  3600.           Object Manipulation:
  3601.  
  3602.                Object (x1,y1,x2,y2)
  3603.                Drop
  3604.                Reverse
  3605.                Expand
  3606.                Enlarge
  3607.                Contract
  3608.                Small
  3609.  
  3610.           File: (Load or Save followed by:  "Screen A:PIC\SAMPLE.PIC")
  3611.  
  3612.                Load Screen    <FilePath>
  3613.                Save Screen    <FilePath>
  3614.                Load Drawing   <FilePath>
  3615.                Save Drawing   <FilePath>
  3616.                Load Pattern   <FilePath>
  3617.                Load Font      <FilePath>
  3618.                Load Object    <FilePath>
  3619.                Save Object    <FilePath>
  3620.                Load Macro     <FilePath>
  3621.                Save Macro     <FilePath>
  3622.                Load Points    <FilePath>     ( graph points )
  3623.  
  3624.           Other:
  3625.  
  3626.                Wait (#)       ( # = 1/4 second pause )
  3627.                %              ( end Record Macro     )
  3628.                ; comment
  3629.  
  3630.           Program Control:
  3631.  
  3632.                Procedure <name>
  3633.                 .
  3634.                 .
  3635.                End
  3636.  
  3637.                Repeat (#)     ( loop # times )
  3638.                 .
  3639.                 .
  3640.                End
  3641.  
  3642.                Quit      ( end PIX )
  3643.  
  3644.           Variables:    26 integer vars: [A..Z] can be used for any parm.
  3645.  
  3646.                Let X = #  ( assign value )
  3647.                Inc X           ( increment )
  3648.                Dec X           ( decrement )
  3649.  
  3650.  
  3651.  
  3652.  
  3653.      PIX Language                                                        Page 51
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.  
  3666.                              Summary of Drawing Commands
  3667.  
  3668.  
  3669.  
  3670.           A - Arc               N - sNap on/off      Object Manipulation
  3671.  
  3672.           B - Box               O - Object grab      E - Enlarge Object
  3673.  
  3674.           C - Circle            P - Paint            C - Contract Object
  3675.  
  3676.           D - Drop Object       Q - Quick View       L - Large Object
  3677.  
  3678.           E - Erase mode        R - Rectangle        O - rOtate Object
  3679.  
  3680.           F - Free Draw         S - Suspend          S - Small Object
  3681.  
  3682.           G - Graph             T - Text mode        Alt-E - Ellipse
  3683.  
  3684.           H - Home              U - Undo             Alt-P - Control
  3685.                                                      Panel on/off
  3686.           I - grId on/off       V - curVe
  3687.  
  3688.           J - Just Paint        W - Write            - (minus) - decre-
  3689.                                                      ment cursor inc-
  3690.           K - Kursor change     X - Xfer font        rement value
  3691.  
  3692.           L - Line              Y - spraY can        + (plus) -
  3693.                                                      increment cursor
  3694.           M - Multi-line        Z - Zoom             increment value
  3695.  
  3696.           F1 - F Key menu                            . (period) - Direct
  3697.                                 F2 - Drawing menuon/offMove
  3698.  
  3699.                                 F4 - PatternsF3 - File menu
  3700.                                                      Shift F1-F10 - Set
  3701.                                 F6 - Font EditorF5 - Drawing modeMarker
  3702.           menu
  3703.                                 F8 - Print           Alt F1-F10 - Move
  3704.           F7 - Graphs menu                           to Marker
  3705.                                 F10 - Exit
  3706.           F9 - Erase Screen                          Alt W - Window
  3707.                                 Ctrl-F1 - change     Off/On
  3708.                                 colorAlt-F9 - Erase Draw-
  3709.           ing
  3710.  
  3711.  
  3712.  
  3713.  
  3714.  
  3715.  
  3716.  
  3717.  
  3718.  
  3719.      Page 52                                                         PC-Draft II
  3720.  
  3721.  
  3722.  
  3723.  
  3724.  
  3725.  
  3726.  
  3727.  
  3728.  
  3729.  
  3730.  
  3731.  
  3732.                                         Index
  3733.  
  3734.           Arc  16, 43                             SpraY Can  19
  3735.           Bar Graph  29                           Text  16
  3736.           Box  15, 41                             Transfer to Font  18
  3737.                Printing  35                       Window  21
  3738.           CAPTURE.COM  36                         Write (Graphic Font) 
  3739.           Circle  15, 41                               17
  3740.           Clearing the Screen  11                 Zoom  18
  3741.           Color  21, 44                      Drawing mode  20, 31
  3742.           Compressed Files  12               Drop  43
  3743.           CONFIG.SYS  4                      Drop Object  17
  3744.           Contract  43                       DWG file  12
  3745.           Contract Object  18                Ellipse  15
  3746.           Control Panel  9                   Ending PC-Draft  13
  3747.           Cursor                             Enlarge  43
  3748.                Command  20                   Enlarge Object  18
  3749.                Increment  7                  Epson  33
  3750.                Mouse  8, 20                  Erase  42
  3751.                PIX Command  45               Erasing  11
  3752.                PIX Commands  40              Exit  13
  3753.                suspend  17, 26                    Ending Macros  26
  3754.                Type  8                            PIX  38
  3755.           Curve  15, 42                      Expand  43
  3756.           Direct Move  10                    Features  1
  3757.           Directory  13                      File Names  6
  3758.                Installation  4               Files  6
  3759.           Drawing                                 .FON  24
  3760.                Printing  35                       .MAC  26
  3761.           Drawing Area  9                         .OBJ  23
  3762.           Drawing Commands                        .PAT  22
  3763.                Arc  16                            .PIC & .DWG  12
  3764.                Box  15                            .PTS  29
  3765.                Circle  15                         .SCR.  37
  3766.                Color  21                          Compressed  12
  3767.                Curve  15                          CONFIG.SYS  4
  3768.                Drop Object  17                    DRAFT2.CFG  4
  3769.                Ellipse  15                        GEM format  34
  3770.                Free Draw  15                      Import ASCII  16
  3771.                Graph  29                          Importing ASCII  27
  3772.                grId  20                           Installation  4
  3773.                Just paint  19                     Naming conventions 
  3774.                Kursor  20                              6
  3775.                Line  14                           printing to  34
  3776.                Multi-Line  14                FON file  25
  3777.                Object  17                    Fonts  24
  3778.                Paint  16                          Write command  17
  3779.                Quick view  21                Free Draw  15
  3780.                Rectangle  15                 GEM  34
  3781.                sNap  21                      Gotoxy  40
  3782.  
  3783.  
  3784.  
  3785.      Index                                                               Page 53
  3786.  
  3787.  
  3788.  
  3789.  
  3790.  
  3791.  
  3792.  
  3793.  
  3794.  
  3795.  
  3796.  
  3797.  
  3798.           Graph  41                               IDS Microprism  34
  3799.                Points  29                         LaserJet  33
  3800.                Type  29                           Okidata  33
  3801.           Graphic Macros  26                      resolution modes  32
  3802.           Graphs  29                         Printing  32
  3803.           GrId  20                           Procedure  44
  3804.           Hercules  3                        PTS file  29
  3805.           Home  10, 43                       Quick view  21
  3806.           HP LaserJet+  33                   Rectangle  15, 41
  3807.           Import text  27                    Relative Cursor Increment 
  3808.           Installation  4                              26
  3809.           Just paint  19                     Repeat  44
  3810.           Kursor  20, 43                     Replace Drawing Mode  31
  3811.           Large Object  18                   Reverse  43
  3812.           Laser printer  32                  Reverse Object  18
  3813.           Line  14, 41                       Rotate Object  18
  3814.           Line Graph  29                     SCR file  37
  3815.           MAC file  26                       Screen
  3816.                Structure  27                      Capture  36
  3817.           Macros  26                              Printing  34
  3818.           Markers  10                        Search directory  13
  3819.           Menus  8                           Small  43
  3820.           MicroSoft  4                       Small Object  18
  3821.           Mode  31, 43                       SNap  21
  3822.           Mouse                              SpraY Can  19
  3823.                buttons  5                    Suspend
  3824.                cursor  8, 20                      Cursor  26
  3825.                driver  4                     Text  16, 43
  3826.           Move                               Tog  43
  3827.                direct  10                    Trace (PIX)  38
  3828.                screen  10                    Transfer to Font  18
  3829.                to marker  10                 Transparent Drawing Mode 
  3830.           Multi-Line  14, 42                           31
  3831.           OBJ file  23                       Undo  11, 43
  3832.           Object  17, 23, 41                 Window  21, 41
  3833.           Object Manipulation  17            Write  43
  3834.           Overlay Drawing Mode  31           Write (Graphic Font)  17
  3835.           Paint  16, 43                      Xfer  18
  3836.           PAT file  22                       Zoom  18
  3837.           Pattern  22, 43                    [K]ursor  8
  3838.           PIC file  12
  3839.                Capture  36
  3840.           Pie Graph  29
  3841.           PIX graphics language  37
  3842.           Printers  5
  3843.                C.Itoh  34
  3844.                DeskJet  33
  3845.                Epson  33
  3846.                GEM .IMG files  34
  3847.                IBM dot matrix  33
  3848.  
  3849.  
  3850.  
  3851.      Page 54                                                         PC-Draft II
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.  
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905.  
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.      Index                                                               Page 55
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923. 
  3924.